diff options
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r-- | src/fe-text/gui-readline.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index c5602262..3eb527fe 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -309,24 +309,7 @@ static void key_yank_from_cutbuffer(void) static void key_transpose_characters(void) { -#if 0 /* FIXME: !!! */ - char *line, c; - int pos; - - pos = gui_entry_get_pos(active_entry); - line = gui_entry_get_text(active_entry); - if (pos == 0 || strlen(line) < 2) - return; - - if (line[pos] != '\0') - gui_entry_move_pos(active_entry, 1); - c = line[gui_entry_get_pos(active_entry)-1]; - gui_entry_erase(active_entry, 1); - gui_entry_move_pos(active_entry, -1); - gui_entry_insert_char(active_entry, c); - gui_entry_set_pos(active_entry, pos); - gui_entry_move_pos(active_entry, 1); -#endif + gui_entry_transpose_chars(active_entry); } static void key_delete_character(void) |