summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-readline.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-15 16:02:14 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-15 16:02:14 +0000
commiteb31bb17129be11aeab2e592c42d4725b81bbdf2 (patch)
tree2cc7efb3427f44b8450110896832d1cbcced76f6 /src/fe-text/gui-readline.c
parentb18424f7cb85120855156f837cc291a71af970e7 (diff)
downloadirssi-eb31bb17129be11aeab2e592c42d4725b81bbdf2.zip
transpose_characters was broken
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2454 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r--src/fe-text/gui-readline.c19
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)