summary refs log tree commit diff stats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
authorFarow <farow_spam@lavabit.com>2013-08-13 04:19:14 +0300
committerFarow <farow_spam@lavabit.com>2013-08-13 04:19:14 +0300
commit4f77f046d00d81d083fa1614e7fb6099dc791a62 (patch)
treecceece3a0b54b6faeab91c678aa6cdc4c6e71021 /src/fe-gtk/maingui.c
parent0b95c1c444fd87583ae87ea3c59e883b5bfbbd0e (diff)
Channel url and cursor fix
- Allow colons in channel urls
- Only add the channel part in the context menu
- Fix cursor not changing between separator and url
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index 84df4b96..17dc4e75 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -2306,6 +2306,8 @@ mg_word_clicked (GtkWidget *xtext, char *word, GdkEventButton *even)
 		menu_nickmenu (sess, even, word, FALSE);
 		break;
 	case WORD_CHANNEL:
+		word[end] = 0;
+		word += start;
 		menu_chanmenu (sess, even, word);
 		break;
 	case WORD_EMAIL: