aboutsummaryrefslogtreecommitdiff
path: root/irc/xchat/files/patch-fixtabcomp
diff options
context:
space:
mode:
Diffstat (limited to 'irc/xchat/files/patch-fixtabcomp')
-rw-r--r--irc/xchat/files/patch-fixtabcomp24
1 files changed, 24 insertions, 0 deletions
diff --git a/irc/xchat/files/patch-fixtabcomp b/irc/xchat/files/patch-fixtabcomp
new file mode 100644
index 000000000000..9498dd636f93
--- /dev/null
+++ b/irc/xchat/files/patch-fixtabcomp
@@ -0,0 +1,24 @@
+# Fixes two tab-nick-completion bugs:
+# 1. Crash when you type space-tab
+# 2. Critical glib warning when completion in a dialog-tab.
+--- src/fe-gtk/fkeys.c.orig Thu Aug 5 07:49:06 2004
++++ src/fe-gtk/fkeys.c Mon Aug 16 22:54:58 2004
+@@ -1427,7 +1427,7 @@
+ skip_len++;
+ }
+ else
+- cursor_pos = g_utf8_pointer_to_offset(text, g_utf8_offset_to_pointer(ch, 1));
++ return 2;
+ }
+
+ comp = skip_len;
+@@ -1608,7 +1608,8 @@
+ list = list->next;
+ }
+ PrintText (sess, buf);
+- g_completion_free(gcomp);
++ if (gcomp)
++ g_completion_free(gcomp);
+ return 2;
+ }
+ /* Only one matching entry */