Skip to content

Commit 44c6fe7

Browse files
committed
Split off window_width message from shell output
We have to explicitly print a newline to improve robustness. This is an addendum to 5f663e8 and should help with #52.
1 parent 5f663e8 commit 44c6fe7

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("sh -c 'tmux display-message -p \"#{window_width}\"'")[-1])
15+
let g:tpipeline_size = str2nr(systemlist("sh -c 'echo \"\"; tmux display-message -p \"#{window_width}\"'")[-1])
1616
endfunc
1717

1818
func tpipeline#util#check_gui()

0 commit comments

Comments
 (0)