aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/parser.cpp b/parser.cpp
index 7e4da4a..ea3a9a9 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -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);