diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 86359ce8c9..397331f7a6 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -1812,7 +1812,7 @@ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) && !cur.buffer().isClean() && cur.inTexted() && old.inTexted() && cur.pit() != old.pit()) { - old.paragraph().updateWords(old.buffer(), old.top()); + old.paragraph().updateWords(old.top()); return false; } diff --git a/src/Text.cpp b/src/Text.cpp index 2a7942a607..5e18d6f185 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -581,7 +581,7 @@ void Text::charInserted(Cursor & cur) && !par.isLetter(cur.pos() - 1)) { // get the word in front of cursor BOOST_ASSERT(this == cur.text()); - cur.paragraph().updateWords(cur.buffer(), cur.top()); + cur.paragraph().updateWords(cur.top()); } } @@ -1206,7 +1206,7 @@ bool Text::read(Buffer const & buf, Lexer & lex, // register the words in the global word list CursorSlice sl = CursorSlice(*insetPtr); sl.pit() = pars_.size() - 1; - pars_.back().updateWords(buf, sl); + pars_.back().updateWords(sl); } else if (token == "\\begin_deeper") { ++depth; } else if (token == "\\end_deeper") {