tex: global command should default to the entire fire - 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 a17ced97054879718d841206a24ede5e1c7497c1
(DIR) parent 9ee0c8c148fefbb2599974b36883484270d54a5c
(HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
Date: Tue, 27 Jun 2017 18:10:23 +0430
ex: global command should default to the entire fire
Reported by Leah Neukirchen <leah@vuxu.org>.
Diffstat:
M ex.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/ex.c b/ex.c
t@@ -795,6 +795,8 @@ static int ec_glob(char *ec)
int i;
ex_cmd(ec, cmd);
ex_loc(ec, loc);
+ if (!loc[0])
+ strcpy(loc, "%");
if (ex_region(loc, &beg, &end))
return 1;
not = strchr(cmd, '!') || cmd[0] == 'v';