]> git.lyx.org Git - lyx.git/blobdiff - src/text.C
ws changes only
[lyx.git] / src / text.C
index 0186f365c370d3fea33f363dc91ee4c3cf38a20b..16db12f50ab5caaec20052cd0d20957e137ff2fb 100644 (file)
@@ -1536,7 +1536,7 @@ void LyXText::cursorLeftOneWord()
 void LyXText::selectWord(word_location loc)
 {
        LyXCursor from = cursor;
-       LyXCursor to;
+       LyXCursor to = cursor;
        ::getWord(*this, from, to, loc, ownerParagraphs());
        if (cursor != from)
                setCursor(from.par(), from.pos());