]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Add an update parameter to BufferView::scrollToCursor and BufferView::scrollDocView...
[lyx.git] / src / Paragraph.cpp
index 71c6c5b8fdc8bc148de01e4bba6e5ea457eb824d..5ec2adfeefed9fc0f8c8d613900dd631441e5588 100644 (file)
@@ -3125,13 +3125,16 @@ void Paragraph::locateWord(pos_type & from, pos_type & to,
 
 void Paragraph::collectWords()
 {
+       // This is the value that needs to be exposed in the preferences
+       // to resolve bug #6760.
+       static int minlength = 6;
        pos_type n = size();
        for (pos_type pos = 0; pos < n; ++pos) {
                if (isWordSeparator(pos))
                        continue;
                pos_type from = pos;
                locateWord(from, pos, WHOLE_WORD);
-               if (pos - from >= 6) {
+               if (pos - from >= minlength) {
                        docstring word = asString(from, pos, AS_STR_NONE);
                        FontList::const_iterator cit = d->fontlist_.fontIterator(pos);
                        if (cit == d->fontlist_.end())