]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
- moderncv.layout: add missing separator style
[lyx.git] / src / Paragraph.cpp
index df8de4c39f09ced1bece8559b5f0405d4eb102b3..5cfce9bec536679dfa09775526a317805aec291b 100644 (file)
@@ -3489,16 +3489,13 @@ 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 >= minlength) {
+               if ((pos - from) >= (int)lyxrc.completion_minlength) {
                        docstring word = asString(from, pos, AS_STR_NONE);
                        FontList::const_iterator cit = d->fontlist_.fontIterator(pos);
                        if (cit == d->fontlist_.end())