From 39c513c493730413503bad7a7a271a452ed60a03 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Thu, 29 Apr 2004 19:56:33 +0000 Subject: Yet another input buffer patch. Submitted by: mhsin via #bsdchat --- .../irssi/files/patch-src::fe-text::gui-readline.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'chinese/irssi/files/patch-src::fe-text::gui-readline.c') diff --git a/chinese/irssi/files/patch-src::fe-text::gui-readline.c b/chinese/irssi/files/patch-src::fe-text::gui-readline.c index 99e673023ca6..77dd303e2314 100644 --- a/chinese/irssi/files/patch-src::fe-text::gui-readline.c +++ b/chinese/irssi/files/patch-src::fe-text::gui-readline.c @@ -1,5 +1,5 @@ --- src/fe-text/gui-readline.c.orig Thu Nov 27 01:30:03 2003 -+++ src/fe-text/gui-readline.c Wed Apr 7 11:02:59 2004 ++++ src/fe-text/gui-readline.c Thu Apr 29 14:33:01 2004 @@ -187,7 +187,12 @@ out[utf16_char_to_utf8(arr[i], out)] = '\0'; g_string_append(str, out); @@ -14,7 +14,7 @@ } } -@@ -620,9 +625,7 @@ +@@ -620,15 +625,13 @@ char *text, *line; int pos; @@ -25,7 +25,14 @@ line = word_complete(active_win, text, &pos, erase); g_free(text); -@@ -648,9 +651,7 @@ + if (line != NULL) { + gui_entry_set_text(active_entry, line); +- gui_entry_set_pos(active_entry, pos); ++ gui_entry_set_linepos(active_entry, pos); + g_free(line); + } + } +@@ -648,15 +651,13 @@ char *text, *line; int pos; @@ -36,3 +43,10 @@ line = auto_word_complete(text, &pos); g_free(text); + if (line != NULL) { + gui_entry_set_text(active_entry, line); +- gui_entry_set_pos(active_entry, pos); ++ gui_entry_set_linepos(active_entry, pos); + g_free(line); + } + } -- cgit v1.2.3