diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-11-11 20:40:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-11-11 20:40:50 +0000 |
commit | 534713602d3116db96f8a9bdf236d90c4cdead95 (patch) | |
tree | cdd5719ab697bc6656ab056ecc47a8af5022ef2f /usr.bin | |
parent | e041013684c69169a775baa646398b0e5b91b369 (diff) |
updating the character offset on the line all the time is astoundingly
hostile to slow terminals.
ok lum
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/display.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mg/display.c b/usr.bin/mg/display.c index ba7c580e9c5..f881bea52f5 100644 --- a/usr.bin/mg/display.c +++ b/usr.bin/mg/display.c @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.37 2009/06/04 02:23:37 kjell Exp $ */ +/* $OpenBSD: display.c,v 1.38 2012/11/11 20:40:49 deraadt Exp $ */ /* This file is in the public domain. */ @@ -835,8 +835,7 @@ modeline(struct mgwin *wp) ++n; if (linenos) { - len = snprintf(sl, sizeof(sl), "--L%d--C%d", wp->w_dotline, - getcolpos()); + len = snprintf(sl, sizeof(sl), "--L%d", wp->w_dotline); if (len < sizeof(sl) && len != -1) n += vtputs(sl); } |