Mercurial > vim
comparison src/edit.c @ 3302:4500a0ad2e0a v7.3.418
updated for version 7.3.418
Problem: When a user complete function returns -1 an error message is
given.
Solution: When -2 is returned stop completion silently. (Yasuhiro Matsumoto)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 26 Jan 2012 18:58:38 +0100 |
parents | 8b928bc814a8 |
children | c70c005f61fb |
comparison
equal
deleted
inserted
replaced
3301:a30e19f222a5 | 3302:4500a0ad2e0a |
---|---|
5187 { | 5187 { |
5188 EMSG(_(e_compldel)); | 5188 EMSG(_(e_compldel)); |
5189 return FAIL; | 5189 return FAIL; |
5190 } | 5190 } |
5191 | 5191 |
5192 /* Return value -2 means the user complete function wants to | |
5193 * cancel the complete without an error. */ | |
5194 if (col == -2) | |
5195 return FAIL; | |
5196 | |
5192 /* | 5197 /* |
5193 * Reset extended parameters of completion, when start new | 5198 * Reset extended parameters of completion, when start new |
5194 * completion. | 5199 * completion. |
5195 */ | 5200 */ |
5196 compl_opt_refresh_always = FALSE; | 5201 compl_opt_refresh_always = FALSE; |