Skip to content

Commit 5f663e8

Browse files
committed
Wrap set_size in sh
Some shells may be weird and add some extra escape codes. Let's just force this to be run with sh to get rid of these external variables outside of our control. We had a similar problem in #27 already and now it occurs in a different form. Fixes #52
1 parent 5de7c75 commit 5f663e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/tpipeline/util.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func tpipeline#util#left_justify(str)
1212
endfunc
1313

1414
func tpipeline#util#set_size()
15-
let g:tpipeline_size = str2nr(systemlist("tmux display-message -p '#{window_width}'")[-1])
15+
let g:tpipeline_size = str2nr(systemlist("sh -c 'tmux display-message -p \"#{window_width}\"'")[-1])
1616
endfunc
1717

1818
func tpipeline#util#check_gui()

0 commit comments

Comments
 (0)