neatvi

[fork] simple vi-type editor with UTF-8 support
git clone git://src.adamsgaard.dk/neatvi # fast
git clone https://src.adamsgaard.dk/neatvi.git # slow
Log | Files | Refs | README Back to index

commit a17ced97054879718d841206a24ede5e1c7497c1
parent 9ee0c8c148fefbb2599974b36883484270d54a5c
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:
Mex.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/ex.c b/ex.c @@ -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';