fix statusline missing after termclose (#236)

This commit is contained in:
siduck76 2021-08-13 13:17:41 +05:30
parent c7fdd68072
commit 3f44f0761a

View File

@ -68,6 +68,7 @@ end
-- Don't show status line on vim terminals -- Don't show status line on vim terminals
vim.cmd [[ au TermOpen term://* setlocal nonumber laststatus=0 ]] vim.cmd [[ au TermOpen term://* setlocal nonumber laststatus=0 ]]
vim.cmd [[ au TermClose term://* setlocal number laststatus=2 ]]
-- Open a file from its last left off position -- Open a file from its last left off position
-- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]] -- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]