aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-14 03:21:49 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-14 03:21:49 +0100
commitb70a8d708aba00b285e8a58c6583b65249e7a63e (patch)
tree2830fe050c4c1527c1439e8de69e4243c63ba82a /parser.cpp
parent56c58144b1ed4f0a145c5572944e1fb2a165a45a (diff)
downloadsciteco-b70a8d708aba00b285e8a58c6583b65249e7a63e.tar.gz
simplified move_lines() a bit
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp3
1 files changed, 1 insertions, 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);
}