X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText.cpp;h=5bb70418eb8023ba7c8a9a70f42eee1cd7bae139;hb=ab96df492a0a359797462fe109d009e54b864a4c;hp=347b7a1205e61e10fc1147e7d6f7589f7bbca61f;hpb=d79225ae987164c59d92621f5f7de203d3179c4c;p=lyx.git diff --git a/src/Text.cpp b/src/Text.cpp index 347b7a1205..5bb70418eb 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -582,7 +582,7 @@ class TextCompletionList : public CompletionList public: /// TextCompletionList(Cursor const & cur, WordList const * list) - : buffer_(cur.buffer()), pos_(0), list_(list) + : buffer_(cur.buffer()), list_(list) {} /// virtual ~TextCompletionList() {} @@ -604,8 +604,6 @@ private: /// Buffer const * buffer_; /// - size_t pos_; - /// WordList const * list_; }; @@ -1059,7 +1057,7 @@ bool Text::cursorForwardOneWord(Cursor & cur) return false; } - if (lyxrc.mac_like_word_movement) { + if (lyxrc.mac_like_cursor_movement) { // Skip through trailing punctuation and spaces. while (pos != lastpos && (par.isChar(pos) || par.isSpace(pos))) ++pos; @@ -1101,7 +1099,7 @@ bool Text::cursorBackwardOneWord(Cursor & cur) if (pos == 0 && pit != 0) return setCursor(cur, pit - 1, getPar(pit - 1).size()); - if (lyxrc.mac_like_word_movement) { + if (lyxrc.mac_like_cursor_movement) { // Skip through punctuation and spaces. while (pos != 0 && (par.isChar(pos - 1) || par.isSpace(pos - 1))) --pos;