diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-06-23 21:34:41 -0700 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2026-06-23 21:34:41 -0700 |
| commit | 874d317334fae1ddce316f9b6f4d0ce4e434bf52 (patch) | |
| tree | 929f924d3c3696d3aa9917aca0e7048bbe3e93e8 /ex_cmds.c | |
| parent | 15bd7946cc838a3151c357e4b0bc1ab85eecda62 (diff) | |
heirloom vi fixes from arch AUR
Diffstat (limited to 'ex_cmds.c')
| -rw-r--r-- | ex_cmds.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -128,7 +128,7 @@ commands(int noprompt, int _exitoneof) * before the next command. */ if (pflag || - lchng != chng && value(AUTOPRINT) && !inglobal && !inopen && endline) { + (lchng != chng && value(AUTOPRINT) && !inglobal && !inopen && endline)) { pflag = 0; nochng(); if (dol != zero) { @@ -166,7 +166,7 @@ error(catgets(catd, 1, 17, addr1 = addr2; addr = address(0); c = getcd(); - if (addr == 0) + if (addr == 0) { if (c == ',') addr = dot; else if (addr1 != 0) { @@ -174,6 +174,7 @@ error(catgets(catd, 1, 17, break; } else break; + } addr2 = addr; given++; if (c == ';') { @@ -911,7 +912,7 @@ numberit: setall(); if (inglobal == 2) pofix(); - printf("%d", lineno(addr2)); + ex_printf("%d", lineno(addr2)); noonl(); continue; |
