From b70a8d708aba00b285e8a58c6583b65249e7a63e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 14 Nov 2012 03:21:49 +0100 Subject: simplified move_lines() a bit --- parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parser.cpp b/parser.cpp index b71ba53..9cca8c7 100644 --- a/parser.cpp +++ b/parser.cpp @@ -353,8 +353,7 @@ void StateStart::move_lines(gint64 n) { sptr_t pos = editor_msg(SCI_GETCURRENTPOS); - sptr_t line = editor_msg(SCI_LINEFROMPOSITION, pos); - editor_msg(SCI_GOTOPOS, editor_msg(SCI_POSITIONFROMLINE, line + n)); + editor_msg(SCI_GOTOLINE, editor_msg(SCI_LINEFROMPOSITION, pos) + n); undo.push_msg(SCI_GOTOPOS, pos); } -- cgit v1.2.3