summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-01-13 23:32:34 +0100
committerMatthias Melcher <git@matthiasm.com>2019-01-13 23:32:34 +0100
commit3d6b234c274d1376a95d462f13dea69bd117953c (patch)
treebb44c7be31fe4dc7fc2de1840e7610d44f51ba75 /fluid/Fl_Type.h
parenta1ebe87a885679feed893fc8f14d2425abd36cc8 (diff)
STR 3460: remember cursor position in code editor
When editing code in Fluid, the COde_Type class will now remember the last cursor position and reopen the editor dialog at that position (not for external editor).
Diffstat (limited to 'fluid/Fl_Type.h')
-rw-r--r--fluid/Fl_Type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
index a55ea3c44..45b881ee3 100644
--- a/fluid/Fl_Type.h
+++ b/fluid/Fl_Type.h
@@ -193,7 +193,9 @@ public:
class Fl_Code_Type : public Fl_Type {
ExternalCodeEditor editor_;
+ int cursor_position_;
public:
+ Fl_Code_Type() { cursor_position_ = 0; }
Fl_Type *make();
void write();
void write_code1();