From 64a5ebe8752985126da4e4c3aef1ec4b85b3c056 Mon Sep 17 00:00:00 2001 From: benmills Date: Thu, 12 Apr 2012 14:54:28 -0500 Subject: [PATCH] Use tmux display to find the current session name making vimux tmux1.3 compatible. Fixes #7 --- plugin/vimux.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vimux.vim b/plugin/vimux.vim index 44112f9..be07ff8 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -192,7 +192,7 @@ class CurrentTmuxSession < TmuxSession end def get_session - _run("list-panes -F '\#\{session_name\}'").split("\n").first.strip + _run("display -p '#S'").strip end end EOF