aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-22 01:21:35 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-22 01:47:13 -0400
commit864caa2f02053234012af0214cc49803e539f7eb (patch)
treed9127728aade69a3ebf4281ce9200a8b69164b98 /src/parser.c
parent811c7ebac662d1acc8b1b614c76b74c6043a48a0 (diff)
downloadrunes-864caa2f02053234012af0214cc49803e539f7eb.tar.gz
runes-864caa2f02053234012af0214cc49803e539f7eb.zip
fix insert lines implementation
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.c b/src/parser.c
index 5b4888f..8ea5e8e 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -2604,8 +2604,8 @@ static void runes_parser_handle_il(RunesTerm *t, char *buf, size_t len)
int params[RUNES_PARSER_CSI_MAX_PARAMS] = { 1 }, nparams;
runes_parser_extract_csi_params(buf + 2, len - 3, params, &nparams);
- /* XXX this is wrong - it only works if the cursor is on the top line */
- runes_display_scroll_up(t, params[0]);
+ runes_display_insert_lines(t, params[0]);
+ runes_display_move_to(t, t->row, 0);
}
static void runes_parser_handle_dl(RunesTerm *t, char *buf, size_t len)