Introduction
Introduction Statistics Contact Development Disclaimer Help
tex: ignore empty search keywords in ex_kwdset() - neatvi - [fork] simple vi-ty…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit 849e2276726b60138737f4fbf260ed3e04f5965b
parent ab0d1b332d907cd6e7b31089fc689d32377c3485
Author: Ali Gholami Rudi <[email protected]>
Date: Thu, 17 Mar 2016 15:31:33 +0330
ex: ignore empty search keywords in ex_kwdset()
Diffstat:
M ex.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ex.c b/ex.c
t@@ -204,8 +204,10 @@ int ex_kwd(char **kwd, int *dir)
/* set the previous search keyword */
void ex_kwdset(char *kwd, int dir)
{
- snprintf(xkwd, sizeof(xkwd), "%s", kwd);
- reg_put('/', kwd, 0);
+ if (kwd) {
+ snprintf(xkwd, sizeof(xkwd), "%s", kwd);
+ reg_put('/', kwd, 0);
+ }
xkwddir = dir;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.