about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-06-01 16:50:14 -0400
committerJosh Rickmar <jrick@devio.us>2012-06-01 16:50:14 -0400
commit108f505da68aeaa8ff1674fe1596c3c3b872d85b (patch)
treef5310b01a2cc835acbae11a581563031dcca5f39 /xombrero.c
parent6697fce3a8cf6a8f80b32015cf3668fdc9b5a0c8 (diff)
downloadxombrero-108f505da68aeaa8ff1674fe1596c3c3b872d85b.tar.gz
Run the socket command on the current tab, not the last one. This
fixes FS#251.
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xombrero.c b/xombrero.c
index 7f64aa5..92c9d9d 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -7500,7 +7500,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);
 }