Patch: reducing amount of duplicate code
From: Dmitry <wipedout_at_yandex.ru>
Date: Tue, 01 Sep 2009 09:14:50 +0400
Hey.
Here's a patch for reducing code duplication. Not tested - needs review.
Also (prior to the patch) in OnCaretLeft() and OnCaretRight() first follows EnsureCaretVisible(), then UpdateCaret(), and in OnCaretUp() and OnCaretDown() the above two calls are in reverse order. Is this reverse order ever needed? If not, onCaretWordLeftRight() method could be renamed into onCaretMove() and further reused.
Best wishes.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.