From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/Fl_Text_Editor.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl_Text_Editor.cxx') diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx index 205687c36..6bbb2a81d 100644 --- a/src/Fl_Text_Editor.cxx +++ b/src/Fl_Text_Editor.cxx @@ -147,7 +147,8 @@ static struct { /** Adds all of the default editor key bindings to the specified key binding list.*/ void Fl_Text_Editor::add_default_key_bindings(Key_Binding** list) { - for (int i = 0; default_key_bindings[i].key; i++) { + int i; + for (i = 0; default_key_bindings[i].key; i++) { add_key_binding(default_key_bindings[i].key, default_key_bindings[i].state, default_key_bindings[i].func, @@ -155,7 +156,7 @@ void Fl_Text_Editor::add_default_key_bindings(Key_Binding** list) { } Key_Binding *extra_key_bindings = Fl::screen_driver()->text_editor_extra_key_bindings; if (extra_key_bindings) { // add platform-specific key bindings, if any - for (int i = 0; extra_key_bindings[i].key; i++) { + for (i = 0; extra_key_bindings[i].key; i++) { add_key_binding(extra_key_bindings[i].key, extra_key_bindings[i].state, extra_key_bindings[i].function, -- cgit v1.2.3