From 6110a006d5b46b850247ed2c85bb7d7614cba025 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 26 Jan 2012 18:58:38 +0100 Subject: [PATCH] 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) --- src/edit.c | 5 +++++ src/version.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/edit.c b/src/edit.c index 08b555ba2..9a0abf94f 100644 --- a/src/edit.c +++ b/src/edit.c @@ -5189,6 +5189,11 @@ ins_complete(c) return FAIL; } + /* Return value -2 means the user complete function wants to + * cancel the complete without an error. */ + if (col == -2) + return FAIL; + /* * Reset extended parameters of completion, when start new * completion. diff --git a/src/version.c b/src/version.c index 2d82cd80c..8dadac450 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 418, /**/ 417, /**/ -- 2.50.1