File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ void GTextEditor::keydown_event(GKeyEvent& event)
213
213
current_line ().remove (m_cursor.column () - 1 );
214
214
update_scrollbar_ranges ();
215
215
set_cursor (m_cursor.line (), m_cursor.column () - 1 );
216
+ return ;
216
217
}
217
218
if (m_cursor.column () == 0 && m_cursor.line () != 0 ) {
218
219
// Backspace at column 0; merge with previous line
@@ -223,6 +224,7 @@ void GTextEditor::keydown_event(GKeyEvent& event)
223
224
update_scrollbar_ranges ();
224
225
update ();
225
226
set_cursor (m_cursor.line () - 1 , previous_length);
227
+ return ;
226
228
}
227
229
return ;
228
230
}
@@ -233,6 +235,7 @@ void GTextEditor::keydown_event(GKeyEvent& event)
233
235
current_line ().remove (m_cursor.column ());
234
236
update_scrollbar_ranges ();
235
237
update_cursor ();
238
+ return ;
236
239
}
237
240
if (m_cursor.column () == (current_line ().length () + 1 ) && m_cursor.line () != line_count () - 1 ) {
238
241
// Delete at end of line; merge with next line
@@ -243,6 +246,7 @@ void GTextEditor::keydown_event(GKeyEvent& event)
243
246
update_scrollbar_ranges ();
244
247
update ();
245
248
set_cursor (m_cursor.line (), previous_length);
249
+ return ;
246
250
}
247
251
return ;
248
252
}
You can’t perform that action at this time.
0 commit comments