Ticket #2614: Editor word completion should ignore the current word
commit9b86146de2816bd09919b0372f8e8b88bd9e9369
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:38:04 +0000 (24 20:38 +0300)
tree11d492b477c0694ffd72a08283be0eb1ef034d68
parent1f24672391cbb4df85a8a2d3c2e36e8e23beccad
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