diff --git a/src/Text.cpp b/src/Text.cpp index 80babde39a..fe59cb3f71 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -1266,7 +1266,7 @@ void Text::selectWord(Cursor & cur, word_location loc) { LBUFERR(this == cur.text()); CursorSlice from = cur.top(); - CursorSlice to = cur.top(); + CursorSlice to; getWord(from, to, loc); if (cur.top() != from) setCursor(cur, from.pit(), from.pos());