# HG changeset patch # User Bram Moolenaar # Date 1337351721 -7200 # Node ID ebec52bc2800b8e51e522425fdca5c252e6d4f8e # Parent 402e07514b00112bdc1fdd845e58b586b7608f11 updated for version 7.3.519 Problem: When completefunction returns it cannot indicate end of completion mode. Solution: Recognize completefunction returning -3. (Mtsushita Shougo) diff --git a/src/edit.c b/src/edit.c --- a/src/edit.c +++ b/src/edit.c @@ -5205,9 +5205,17 @@ ins_complete(c) } /* Return value -2 means the user complete function wants to - * cancel the complete without an error. */ + * cancel the complete without an error. + * Return value -3 does the same as -2 and leaves CTRL-X mode.*/ if (col == -2) return FAIL; + if (col == -3) + { + ctrl_x_mode = 0; + edit_submode = NULL; + msg_clr_cmdline(); + return FAIL; + } /* * Reset extended parameters of completion, when start new diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 519, +/**/ 518, /**/ 517,