aboutsummaryrefslogtreecommitdiff
path: root/irc/xchat2/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-07-08 19:00:10 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-07-08 19:00:10 +0000
commit47cc804db904e96aaaa4f823b16808c9c3a8b1a4 (patch)
tree4f2c426fe66b58043a50958a3da8a1e6df0dd4ea /irc/xchat2/files
parente6e0a58b56da91bdeb63040816437eaf07e8da1f (diff)
downloadports-47cc804db904e96aaaa4f823b16808c9c3a8b1a4.tar.gz
ports-47cc804db904e96aaaa4f823b16808c9c3a8b1a4.zip
Notes
Diffstat (limited to 'irc/xchat2/files')
-rw-r--r--irc/xchat2/files/patch-fixtabcomp24
1 files changed, 24 insertions, 0 deletions
diff --git a/irc/xchat2/files/patch-fixtabcomp b/irc/xchat2/files/patch-fixtabcomp
new file mode 100644
index 000000000000..0f96282fb27e
--- /dev/null
+++ b/irc/xchat2/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 2004-07-01 18:28:43.000000000 +0200
++++ src/fe-gtk/fkeys.c 2004-07-05 12:19:56.000000000 +0200
+@@ -1394,7 +1394,7 @@
+ skip_len++;
+ }
+ else
+- cursor_pos = g_utf8_pointer_to_offset(text, g_utf8_offset_to_pointer(ch, 1));
++ return 2;
+ }
+
+ comp = skip_len;
+@@ -1599,7 +1599,8 @@
+ gtk_entry_set_text (GTK_ENTRY (t), buf);
+ gtk_editable_set_position (GTK_EDITABLE (t), g_utf8_pointer_to_offset(buf, buf + cursor_pos));
+ }
+- g_completion_free(gcomp);
++ if (gcomp)
++ g_completion_free(gcomp);
+ return 2;
+ }
+ #undef COMP_BUF