From 3cb89cafe3e99fc64f6fd6fff47831d1a9331b4e Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 9 Mar 2019 23:12:33 +0100 Subject: vim-patch:8.1.0994: fix relative cursor position #9676 Problem: Relative cursor position is not calculated correctly. Solution: Always set topline, also when window is one line only. (Robert Webb) Add more info to getwininfo() for testing. https://github.com/vim/vim/commit/8fcb60f961bdd134599fb016c6537fd496e800f5 --- runtime/doc/eval.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 3efe651dfe..da17faaaf6 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4504,11 +4504,13 @@ getwininfo([{winid}]) *getwininfo()* tab pages is returned. Each List item is a Dictionary with the following entries: + botline last displayed buffer line bufnr number of buffer in the window height window height (excluding winbar) loclist 1 if showing a location list quickfix 1 if quickfix or location list window tabnr tab page number + topline first displayed buffer line variables a reference to the dictionary with window-local variables width window width -- cgit