summaryrefslogtreecommitdiff
path: root/fluid/CodeEditor.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2016-08-16 20:23:51 +0000
committerGreg Ercolano <erco@seriss.com>2016-08-16 20:23:51 +0000
commit5f445ab306211bbca6c676a1fbbcf33678d74f61 (patch)
tree9592428b44c0f9afebae15001bf2e767da7b76cf /fluid/CodeEditor.cxx
parentf814211547c4321f7906dda4e5403ef6738c33a9 (diff)
Bringing over fix [r11875] from 1.3 current to the porting branch.
Solves STR #3319: enable line numbers in fluid: Edit -> Show Source Code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/CodeEditor.cxx')
-rw-r--r--fluid/CodeEditor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/fluid/CodeEditor.cxx b/fluid/CodeEditor.cxx
index e4fbc57f2..8a95453d4 100644
--- a/fluid/CodeEditor.cxx
+++ b/fluid/CodeEditor.cxx
@@ -405,6 +405,8 @@ CodeEditor::CodeEditor(int X, int Y, int W, int H, const char *L) :
mBuffer->add_modify_callback(style_update, this);
add_key_binding(FL_Enter, FL_TEXT_EDITOR_ANY_STATE,
(Fl_Text_Editor::Key_Func)auto_indent);
+ linenumber_width(60);
+ linenumber_size(Fl_Text_Display::textsize());
}
// Destroy a CodeEditor widget...