about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-06-01 17:48:52 -0400
committerJosh Rickmar <jrick@devio.us>2012-06-01 17:48:52 -0400
commit66982c922628a9b4cde757a4342a92717fb092a0 (patch)
treecd6643ea424d92c3899107d4b8a5c13e712d7dc8
parentbd853cb3f256c4faeb9295c87435c1a1eadafd29 (diff)
downloadxombrero-66982c922628a9b4cde757a4342a92717fb092a0.tar.gz
Ugh. I guess I'll have to do a lot of these. This fixes the socket
command running on the wrong tab.
-rw-r--r--xombrero.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xombrero.c b/xombrero.c
index 19c3a88..218fef1 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -7583,7 +7583,7 @@ socket_watcher(GIOChannel *source, GIOCondition condition, gpointer data)
 	if (n <= 0)
 		return (TRUE);
 
-	tt = TAILQ_LAST(&tabs, tab_list);
+	tt = get_current_tab();
 	cmd_execute(tt, str);
 	return (TRUE);
 }