Ticket #2614: Editor word completion should ignore the current word
commit206a59a358318b4a4fc387b5dcd4af1015c0aabd
authorply <ply@t-online.hu>
Fri, 23 Sep 2011 10:38:56 +0000 (23 13:38 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Mon, 24 Oct 2011 17:36:05 +0000 (24 20:36 +0300)
tree66f6098b90af662bf6ca0728cdc376952d964d58
parentd33ae787e0173a940b1ad128c6ba323a4206dcf8
Ticket #2614: Editor word completion should ignore the current word

Currently the completion considers the word the cursor is on as a possible
completion, but this is quite annoying if the cursor is inside the word.
Such completion effectively inserts the rest of the word one more time, so
CamelCase becomes CamelCaseCase. If this is the only match, it completes
automatically, which is even worse. The current word shouldn't be used
for completion.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/editor/editcmd.c