Add patch for xchat that removes the space after nick-completed nicknames.
[overlay.git] / net-irc / xchat / files / xchat-2.8.6-nickcompletion_without_space.diff
diff --git a/net-irc/xchat/files/xchat-2.8.6-nickcompletion_without_space.diff b/net-irc/xchat/files/xchat-2.8.6-nickcompletion_without_space.diff
new file mode 100644 (file)
index 0000000..d050ac5
--- /dev/null
@@ -0,0 +1,10 @@
+--- xchat-2.8.6-orig/src/fe-gtk/fkeys.c        2010-07-01 10:41:26.000000000 +0200
++++ xchat-2.8.6/src/fe-gtk/fkeys.c     2010-07-01 10:54:22.000000000 +0200
+@@ -1661,7 +1661,6 @@
+               strncat (buf, result, COMP_BUF - (prefix_len + 3)); /* make sure nicksuffix and space fits */
+               if(!prefix_len && is_nick)
+                       strcat (buf, &prefs.nick_suffix[0]);
+-              strcat (buf, " ");
+               cursor_pos = strlen (buf);
+               if (postfix)
+                       strncat (buf, postfix, COMP_BUF - cursor_pos - 2);