mirror of https://github.com/fltk/fltk
Bringing over fix [r11880] from 1.3 current to the porting branch.
Limit line numbering to New>Code editor. (was affecting Properties->Callback and New>Code>Comment editors) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11906 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
0e404ab7d7
commit
560e2d06ba
|
@ -405,8 +405,6 @@ 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...
|
||||
|
|
|
@ -197,6 +197,9 @@ Fl_Double_Window* make_code_panel() {
|
|||
code_panel->set_modal();
|
||||
code_panel->end();
|
||||
} // Fl_Double_Window* code_panel
|
||||
// Enable line numbers
|
||||
code_input->linenumber_width(60);
|
||||
code_input->linenumber_size(code_input->Fl_Text_Display::textsize());
|
||||
return code_panel;
|
||||
}
|
||||
|
||||
|
|
|
@ -164,6 +164,9 @@ code_panel->hide(); // otherwise hide..} open
|
|||
}
|
||||
}
|
||||
}
|
||||
code {// Enable line numbers
|
||||
code_input->linenumber_width(60);
|
||||
code_input->linenumber_size(code_input->Fl_Text_Display::textsize());} {}
|
||||
}
|
||||
|
||||
Function {make_codeblock_panel()} {} {
|
||||
|
|
Loading…
Reference in New Issue