X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.h;h=006919bfd636232e1dc38cdab8800c61b1cea6db;hb=4db3e641ed6765e005343010cb90ee8af26f8f99;hp=31debbf9c48edc17fba7e76b827b095f0ff47a38;hpb=6ec1683aeecf701edf5d79f449e2e749e93d4342;p=lyx.git diff --git a/src/Cursor.h b/src/Cursor.h index 31debbf9c4..006919bfd6 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -19,8 +19,6 @@ #include "mathed/MathParser_flags.h" -#include - namespace lyx { @@ -52,8 +50,6 @@ public: protected: /// the anchor position DocIterator anchor_; - /// the start of the new born word - DocIterator new_word_; /// mutable DispatchResult disp_; /// do we have a selection? @@ -155,7 +151,7 @@ public: CursorSlice selEnd() const; /// access start of selection DocIterator selectionBegin() const; - /// access start of selection + /// access end of selection DocIterator selectionEnd() const; /** * Update the selection status and save permanent @@ -301,8 +297,6 @@ public: * Not using noScreenUpdate() should never be wrong. */ void noScreenUpdate() const; - /// - Update::flags screenUpdate() const { return disp_.screenUpdate(); } /// fix cursor in circumstances that should never happen. /// \retval true if a fix occured. bool fixIfBroken(); @@ -394,6 +388,8 @@ private: int x_target_; /// if a x_target cannot be hit exactly in a text, put the difference here int textTargetOffset_; + /// the start of the new born word + DocIterator new_word_; /// position before dispatch started DocIterator beforeDispatchCursor_; /// cursor screen coordinates before dispatch started