about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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);
 }