summaryrefslogtreecommitdiff
path: root/ex_cmds.c
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-06-23 21:34:41 -0700
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-06-23 21:34:41 -0700
commit874d317334fae1ddce316f9b6f4d0ce4e434bf52 (patch)
tree929f924d3c3696d3aa9917aca0e7048bbe3e93e8 /ex_cmds.c
parent15bd7946cc838a3151c357e4b0bc1ab85eecda62 (diff)
heirloom vi fixes from arch AUR
Diffstat (limited to 'ex_cmds.c')
-rw-r--r--ex_cmds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ex_cmds.c b/ex_cmds.c
index c23a1e2..11eb4fa 100644
--- a/ex_cmds.c
+++ b/ex_cmds.c
@@ -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;