X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.cpp;h=23db7bc74d9f37d1ad989dde7078ebf3d7a4be1e;hb=e5a91999278253d597ad1e18f322884df4a4c94e;hp=8afbdf3cb45942aa580b6bf5c9a356c567b7077d;hpb=6b2232a29c682d8e62d1d2b963bb1a70bee4330b;p=lyx.git diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 8afbdf3cb4..23db7bc74d 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -286,6 +286,8 @@ void Cursor::reset() push_back(CursorSlice(buffer()->inset())); anchor_ = doc_iterator_begin(buffer()); anchor_.clear(); + new_word_ = doc_iterator_begin(buffer()); + new_word_.clear(); clearTargetX(); selection_ = false; mark_ = false; @@ -1523,8 +1525,6 @@ void Cursor::insert(MathData const & ar) bool Cursor::backspace() { - autocorrect() = false; - if (selection()) { cap::eraseSelection(*this); return true; @@ -1575,7 +1575,6 @@ bool Cursor::backspace() bool Cursor::erase() { - autocorrect() = false; if (inMacroMode()) return true; @@ -1630,7 +1629,6 @@ bool Cursor::up() if (disp_.dispatched()) return true; setCursor(save); - autocorrect() = false; return false; } @@ -1644,7 +1642,6 @@ bool Cursor::down() if (disp_.dispatched()) return true; setCursor(save); - autocorrect() = false; return false; }