]> git.lyx.org Git - lyx.git/blobdiff - src/Text.cpp
do what the FIXME suggested
[lyx.git] / src / Text.cpp
index 4d6df2e7d5c64b04fdef0ed7507b21d77dd695a8..5e18d6f18544fd41fb0ba7d924bd59f25a0cd689 100644 (file)
@@ -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());
        }
 }
 
@@ -916,6 +916,7 @@ bool Text::handleBibitems(Cursor & cur)
 
        // otherwise reset to default
        cur.paragraph().setEmptyOrDefaultLayout(bufparams.documentClass());
+       return true;
 }
 
 
@@ -1205,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") {