Created
November 4, 2013 21:16
-
-
Save zhaocai/7309318 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8c376bdb5e6d22ab56044bd07f4f631eaa40855d Mon Sep 17 00:00:00 2001 | |
From: Zhao Cai <[email protected]> | |
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