tex: call :p for empty lines only once - neatvi - [fork] simple vi-type editor … | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 2b3a43ce720dab6d6687230a408f414ced631888 | |
parent cfdf0cf8c3281f83a091d9c36a887154e0bdfd6e | |
Author: Ali Gholami Rudi <[email protected]> | |
Date: Thu, 31 Oct 2019 19:54:11 +0330 | |
ex: call :p for empty lines only once | |
Diffstat: | |
M ex.c | 4 +--- | |
1 file changed, 1 insertion(+), 3 deletions(-) | |
--- | |
diff --git a/ex.c b/ex.c | |
t@@ -109,7 +109,7 @@ struct lbuf *ex_lbuf(void) | |
char *ex_filetype(void) | |
{ | |
- return xhl ? bufs[0].ft : ""; | |
+ return bufs[0].ft; | |
} | |
/* read ex command location */ | |
t@@ -970,8 +970,6 @@ static int ex_exec(char *ln) | |
break; | |
} | |
} | |
- if (!xvis && !cmd[0]) | |
- ret = ec_print(ec); | |
if (i == LEN(excmds)) | |
ex_line(NULL, ec, &ln); | |
} |