comparison runtime/doc/insert.txt @ 15416:5f8ddd2a7b92 v8.1.0716

patch 8.1.0716: get warning message when 'completefunc' returns nothing commit https://github.com/vim/vim/commit/cee9bc2e3dc5c16a9d2a8d0e23aa0d5fdefa3a4a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 11 13:02:23 2019 +0100 patch 8.1.0716: get warning message when 'completefunc' returns nothing Problem: Get warning message when 'completefunc' returns nothing. Solution: Allow for returning v:none to suppress the warning message. (Yasuhiro Matsumoto, closes #3789)
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Jan 2019 13:15:06 +0100
parents 0ecb909e3249
children f0f06837a699
comparison
equal deleted inserted replaced
15415:ac4c62bf5b1b 15416:5f8ddd2a7b92
1074 refresh A string to control re-invocation of the function 1074 refresh A string to control re-invocation of the function
1075 (optional). 1075 (optional).
1076 The only value currently recognized is "always", the 1076 The only value currently recognized is "always", the
1077 effect is that the function is called whenever the 1077 effect is that the function is called whenever the
1078 leading text is changed. 1078 leading text is changed.
1079
1080 If you want to suppress the warning message for an empty result, return
1081 v:none. This is useful to implement asynchronous completion with complete().
1082
1079 Other items are ignored. 1083 Other items are ignored.
1080 1084
1081 For acting upon end of completion, see the |CompleteDone| autocommand event. 1085 For acting upon end of completion, see the |CompleteDone| autocommand event.
1082 1086
1083 For example, the function can contain this: > 1087 For example, the function can contain this: >