diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-16 23:44:10 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-16 23:44:10 +0100 |
commit | a07db0b055b4289e6480b9f45072858c97d4969a (patch) | |
tree | a0269fcb071977f4d665f8f0763de0fc52cd17a6 /parser.cpp | |
parent | 8f3e18e12c8e85ad635dc765020327477668a131 (diff) | |
download | sciteco-a07db0b055b4289e6480b9f45072858c97d4969a.tar.gz |
scroll caret into view after text insertion
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1108,6 +1108,7 @@ StateInsert::initial(void) throw (Error) } for (int i = args; i > 0; i--) expressions.pop_num_calc(); + interface.ssm(SCI_SCROLLCARET); interface.ssm(SCI_ENDUNDOACTION); undo.push_msg(SCI_UNDO); @@ -1118,7 +1119,8 @@ StateInsert::process(const gchar *str, gint new_chars) throw (Error) { interface.ssm(SCI_BEGINUNDOACTION); interface.ssm(SCI_ADDTEXT, new_chars, - (sptr_t)(str + strlen(str) - new_chars)); + (sptr_t)(str + strlen(str) - new_chars)); + interface.ssm(SCI_SCROLLCARET); interface.ssm(SCI_ENDUNDOACTION); undo.push_msg(SCI_UNDO); |