diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-25 23:00:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-25 23:00:43 -0700 |
commit | a027ce3bf46727889ec14c396f57fec30496bf47 (patch) | |
tree | 18d61fc99ca86651ab07735c03e1290ed18df818 | |
parent | 58f014b1a71c0052668863af4ba84c92c4916b98 (diff) | |
download | txr-a027ce3bf46727889ec14c396f57fec30496bf47.tar.gz txr-a027ce3bf46727889ec14c396f57fec30496bf47.tar.bz2 txr-a027ce3bf46727889ec14c396f57fec30496bf47.zip |
linenoise: no upward retrace after suspend resume.
* linenoise/linenoise.c (edit): After coming back
from a Ctrl-Z suspend, set l->maxrows to zero to force
refresh_multiline to draw the buffer from the current
cursor position down, without any retrograde cursor movement
to above lines, trying to refresh existing lines which
are not there.
-rw-r--r-- | linenoise/linenoise.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c index 2ba472f5..a48ad4d1 100644 --- a/linenoise/linenoise.c +++ b/linenoise/linenoise.c @@ -1976,6 +1976,7 @@ static int edit(lino_t *l, const char *prompt) disable_raw_mode(l); raise(SIGTSTP); enable_raw_mode(l); + l->maxrows = 0; l->dpos = dpos; l->need_refresh = 1; } |