aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-21 23:02:51 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-21 23:02:51 -0400
commitd636c143aec0a73977ce09d85b7da44b75c94417 (patch)
tree71f590724d4e59390b90c8aefe5463d05b9c085c
parentf36a59b17c74705732d3b9f4fd900b6b9168c0eb (diff)
downloadrunes-d636c143aec0a73977ce09d85b7da44b75c94417.tar.gz
runes-d636c143aec0a73977ce09d85b7da44b75c94417.zip
comment
-rw-r--r--src/parser.c1
-rw-r--r--src/parser.l1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c
index 8d8154a..b338688 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -2590,6 +2590,7 @@ 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]);
}
diff --git a/src/parser.l b/src/parser.l
index df5b9de..dbafb9d 100644
--- a/src/parser.l
+++ b/src/parser.l
@@ -461,6 +461,7 @@ 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]);
}