small optimization for wxTextCtrl (forgot to commit with textctrl.cpp)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-11-16 12:06:02 +00:00
parent b9691677a0
commit bcb251a0c1

View File

@ -261,6 +261,12 @@ private:
wxMenu* m_privateContextMenu; wxMenu* m_privateContextMenu;
bool m_isNativeCaretShown; 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 #endif