diff options
author | Mark Lumsden <lum@cvs.openbsd.org> | 2021-03-01 10:51:15 +0000 |
---|---|---|
committer | Mark Lumsden <lum@cvs.openbsd.org> | 2021-03-01 10:51:15 +0000 |
commit | e2cabf3b47ab75eb968195e43fb2218e2e1d2e56 (patch) | |
tree | 66a36542c9e28985db3506f7457462ab5d42ad69 /usr.bin/mg/kbd.c | |
parent | 3efb214d73d4cdb8e7a190f97228a97baf4a9059 (diff) |
Put the hardcoded '\n' character which is found throughout mg into a
buffer specific variable. The diff should not produce any behavourial
changes in mg.
Diffstat (limited to 'usr.bin/mg/kbd.c')
-rw-r--r-- | usr.bin/mg/kbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/kbd.c b/usr.bin/mg/kbd.c index 43c72320b09..2015a8b41a0 100644 --- a/usr.bin/mg/kbd.c +++ b/usr.bin/mg/kbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd.c,v 1.34 2020/02/09 10:13:13 florian Exp $ */ +/* $OpenBSD: kbd.c,v 1.35 2021/03/01 10:51:14 lum Exp $ */ /* This file is in the public domain. */ @@ -371,7 +371,7 @@ selfinsert(int f, int n) } thisflag |= CFINS; } - if (c == '\n') { + if (c == *curbp->b_nlchr) { do { count = lnewline(); } while (--n && count == TRUE); |