diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-14 03:21:49 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-14 03:21:49 +0100 |
commit | b70a8d708aba00b285e8a58c6583b65249e7a63e (patch) | |
tree | 2830fe050c4c1527c1439e8de69e4243c63ba82a | |
parent | 56c58144b1ed4f0a145c5572944e1fb2a165a45a (diff) | |
download | sciteco-b70a8d708aba00b285e8a58c6583b65249e7a63e.tar.gz |
simplified move_lines() a bit
-rw-r--r-- | parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |