When completefunction returns -2, still in Ctrl-X mode

27 views
Skip to first unread message

matsushita shougo

unread,
May 10, 2012, 7:39:11 PM5/10/12
to vim...@googlegroups.com
This issue is related to
7.3.418(https://groups.google.com/forum/#!topic/vim_dev/_w4mI5MQITs/discussion)
changes.

If completefunc returns -2, Vim is still in Ctrl-X mode.
This behavior some affectons(ex: conflicts IM behavior and flicks "^X
mode" in command line).
So, I added below patch.

This patch is :
If completefunc returns -2, cancel completefunc silently(but still in
Ctrl-X mode).
If completefunc returns -3, exit Ctrl-X mode silently.
completefunc.diff

mattn

unread,
May 10, 2012, 7:53:03 PM5/10/12
to vim...@googlegroups.com
Bram, I reviewed this patch in few weeks ago, and confirmed this patch is working well.

Bram Moolenaar

unread,
May 11, 2012, 9:51:29 AM5/11/12
to matsushita shougo, vim...@googlegroups.com
Thanks, I will add this to the todo list.

--
MICHAEL PALIN PLAYED: 1ST SOLDIER WITH A KEEN INTEREST IN BIRDS, DENNIS, MR
DUCK (A VILLAGE CARPENTER WHO IS ALMOST KEENER THAN
ANYONE ELSE TO BURN WITCHES), THREE-HEADED KNIGHT, SIR
GALAHAD, KING OF SWAMP CASTLE, BROTHER MAYNARD'S ROOMATE
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages