comparison plugin/lawrencium.vim @ 100:596f94a7e0fd

Keep alternate buffer intact when opening the status window.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 29 Jul 2014 16:35:54 -0700
parents 001b341ab8ad
children 2078a8b475c2
comparison
equal deleted inserted replaced
99:001b341ab8ad 100:596f94a7e0fd
897 let l:repo = s:hg_repo() 897 let l:repo = s:hg_repo()
898 let l:status_path = l:repo.GetLawrenciumPath('', 'status', '') 898 let l:status_path = l:repo.GetLawrenciumPath('', 'status', '')
899 899
900 " Open the Lawrencium buffer in a new split window of the right size. 900 " Open the Lawrencium buffer in a new split window of the right size.
901 if g:lawrencium_status_win_split_above 901 if g:lawrencium_status_win_split_above
902 execute "leftabove split " . l:status_path 902 execute "keepalt leftabove split " . l:status_path
903 else 903 else
904 execute "rightbelow split " . l:status_path 904 execute "keepalt rightbelow split " . l:status_path
905 endif 905 endif
906 906
907 if (line('$') == 1 && getline(1) == '') 907 if (line('$') == 1 && getline(1) == '')
908 " Buffer is empty, which means there are not changes... 908 " Buffer is empty, which means there are not changes...
909 " Quit and display a message. 909 " Quit and display a message.