vendor/fltk-sys/cfltk/fltk/src/Fl_Text_Editor.cxx
/** Does a backspace for key \p 'c' in the current buffer of editor \p 'e'.
    Any current selection is deleted.
    Otherwise, the character left is deleted and the cursor moved.
    The key value \p 'c' is currently unused.
*/
Does a backspace for key \p 'c' in the current buffer of editor \p 'e'.
Any current selection is deleted.
Otherwise, the character left is deleted and the cursor moved.
The key value \p 'c' is currently unused.
Does a backspace for key \ p ' c ' in the current buffer of editor \ p ' e ' . Any current selection is deleted . Otherwise the character left is deleted and the cursor moved . The key value \ p ' c ' is currently unused .
int Fl_Text_Editor::kf_backspace(int, Fl_Text_Editor* e) {
  if (!e->buffer()->selected() && e->move_left()) {
    int p1 = e->insert_position();
    int p2 = e->buffer()->next_char(p1);
    e->buffer()->select(p1, p2);
  }
  kill_selection(e);
  e->show_insert_position();
  e->set_changed();
  if (e->when()&FL_WHEN_CHANGED) e->do_callback();
  return 1;
}
int Fl_Text_Editor :: kf_backspace ( int , Fl_Text_Editor * e ) { if ( ! e -> buffer ( ) -> selected ( ) && e -> move_left ( ) ) { int p1 = e -> insert_position ( ) ; int p2 = e -> buffer ( ) -> next_char ( p1 ) ; e -> buffer ( ) -> select ( p1 , p2 ) ; } kill_selection ( e ) ; e -> show_insert_position ( ) ; e -> set_changed ( ) ; if ( e -> when ( ) & FL_WHEN_CHANGED ) e -> do_callback ( ) ; return 1 ; }
Does a backspace for key \p 'c' in the current buffer of editor \p 'e'.
Does a backspace for key \ p ' c ' in the current buffer of editor \ p ' e ' .