Ticket #2245: mcedit: entire file wordcompletion failed

...if word to be comleted is begun from begin of file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>