tex: call :p for empty lines only once - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 2b3a43ce720dab6d6687230a408f414ced631888
(DIR) parent cfdf0cf8c3281f83a091d9c36a887154e0bdfd6e
(HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
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(-)
---
(DIR) 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);
}