tex: global command should default to the entire fire - neatvi - [fork] simple … | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit a17ced97054879718d841206a24ede5e1c7497c1 | |
parent 9ee0c8c148fefbb2599974b36883484270d54a5c | |
Author: Ali Gholami Rudi <[email protected]> | |
Date: Tue, 27 Jun 2017 18:10:23 +0430 | |
ex: global command should default to the entire fire | |
Reported by Leah Neukirchen <[email protected]>. | |
Diffstat: | |
M ex.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
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'; |