Skip to content

Instantly share code, notes, and snippets.

@zhaocai
Created November 4, 2013 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhaocai/7309318 to your computer and use it in GitHub Desktop.
Save zhaocai/7309318 to your computer and use it in GitHub Desktop.
From 8c376bdb5e6d22ab56044bd07f4f631eaa40855d Mon Sep 17 00:00:00 2001
From: Zhao Cai <caizhaoff@gmail.com>
Date: Sun, 27 Oct 2013 22:05:23 -0400
Subject: [PATCH] Disable "Pattern not found" message unless verbose > 0
---
src/edit.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/edit.c b/src/edit.c
index 88a82ed..30f88fa 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -5462,7 +5462,8 @@ ins_complete(c)
{
edit_submode_extra = (compl_cont_status & CONT_ADDING)
&& compl_length > 1
- ? (char_u *)_(e_hitend) : (char_u *)_(e_patnotf);
+ ? (char_u *)_(e_hitend) :
+ ( (p_verbose != 0) ? (char_u *)_(e_patnotf) : "");
edit_submode_highl = HLF_E;
/* remove N_ADDS flag, so next ^X<> won't try to go to ADDING mode,
* because we couldn't expand anything at first place, but if we used
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment