summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index e1ddf6c3a..558365325 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -456,6 +456,7 @@ void Fl_Code_Type::open() {
if (!code_panel) make_code_panel();
const char *text = name();
code_input->buffer()->text( text ? text : "" );
+ code_input->insert_position(cursor_position_);
code_panel->show();
const char* message = 0;
for (;;) { // repeat as long as there are errors
@@ -472,6 +473,7 @@ void Fl_Code_Type::open() {
free(c);
break;
}
+ cursor_position_ = code_input->insert_position();
BREAK2:
code_panel->hide();
}