Commit bcea9225 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Protect Vim reorientation from Vim<8.0

parent a4c49d29
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
if has('WinNew')

function! s:setorientation()
	" If an 80×24 terminal is approx. a 4:3 pixel ratio, assume a 1:1 pixel 
	" ratio is approx. a 1:2.5 cell ratio.
@@ -18,3 +20,5 @@ augroup orientation
	au VimResized * call s:setorientation()
	au OptionSet splitright call s:setorientation()
augroup END

endif