aboutsummaryrefslogtreecommitdiff
path: root/vim.dot.link/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim.dot.link/plugin')
-rw-r--r--vim.dot.link/plugin/session_workarounds.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim.dot.link/plugin/session_workarounds.vim b/vim.dot.link/plugin/session_workarounds.vim
index ec891a8..af11f3d 100644
--- a/vim.dot.link/plugin/session_workarounds.vim
+++ b/vim.dot.link/plugin/session_workarounds.vim
@@ -55,6 +55,7 @@ endfunction
"
" https://superuser.com/questions/140419/how-to-start-gvim-maximized
" https://vim.fandom.com/wiki/Maximize_or_set_initial_window_size
+" https://vi.stackexchange.com/questions/8926/is-it-possible-to-obtain-the-displayable-area-width-and-height-of-current-buffe
"let lines_initial=&l:lines
function FixWindowHeights()
" Set the maximum available height
@@ -62,6 +63,9 @@ function FixWindowHeights()
" Set the lines depending on the LINES environment variable
" or through tput.
+ "
+ " This is not always inherited by vim:
+ " https://github.com/vim/vim/issues/12160
if $LINES != ""
execute ':set lines=' . $LINES
else