]> git.saurik.com Git - wxWidgets.git/commitdiff
small optimization for wxTextCtrl (forgot to commit with textctrl.cpp)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2004 12:06:02 +0000 (12:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Nov 2004 12:06:02 +0000 (12:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/textctrl.h

index 316248cf0933522def5f3937672ac0c8c72c6b70..db47342cb0eb56d0c7f762d690053bce0c8fca53 100644 (file)
@@ -261,6 +261,12 @@ private:
     wxMenu* m_privateContextMenu;
 
     bool m_isNativeCaretShown;
+
+    // this is an optimization: instead of checking all the time whether we
+    // need to move the caret to the end of text (before appending to the
+    // control), we remember whether it is already at the end of text in this
+    // variable
+    bool m_isCaretAtEnd;
 };
 
 #endif