comparison src/edit.c @ 3516:ebec52bc2800 v7.3.519

updated for version 7.3.519 Problem: When completefunction returns it cannot indicate end of completion mode. Solution: Recognize completefunction returning -3. (Mtsushita Shougo)
author Bram Moolenaar <bram@vim.org>
date Fri, 18 May 2012 16:35:21 +0200
parents 75037f9bc97a
children 65f905eb14cd
comparison
equal deleted inserted replaced
3515:402e07514b00 3516:ebec52bc2800
5203 EMSG(_(e_compldel)); 5203 EMSG(_(e_compldel));
5204 return FAIL; 5204 return FAIL;
5205 } 5205 }
5206 5206
5207 /* Return value -2 means the user complete function wants to 5207 /* Return value -2 means the user complete function wants to
5208 * cancel the complete without an error. */ 5208 * cancel the complete without an error.
5209 * Return value -3 does the same as -2 and leaves CTRL-X mode.*/
5209 if (col == -2) 5210 if (col == -2)
5210 return FAIL; 5211 return FAIL;
5212 if (col == -3)
5213 {
5214 ctrl_x_mode = 0;
5215 edit_submode = NULL;
5216 msg_clr_cmdline();
5217 return FAIL;
5218 }
5211 5219
5212 /* 5220 /*
5213 * Reset extended parameters of completion, when start new 5221 * Reset extended parameters of completion, when start new
5214 * completion. 5222 * completion.
5215 */ 5223 */