From d5162afa2aee6609bf5d4f818639235b70c57a9a Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Mon, 8 Jul 2019 15:16:17 +0200 Subject: anchor float to buffer position vim-patch:8.1.1645: cannot use a popup window for a balloon --- runtime/doc/eval.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 06f88955c9..756c511000 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2297,6 +2297,7 @@ rpcrequest({channel}, {method}[, {args}...]) screenattr({row}, {col}) Number attribute at screen position screenchar({row}, {col}) Number character at screen position screencol() Number current cursor column +screenpos({winid}, {lnum}, {col}) Dict screen row and col of a text character screenrow() Number current cursor row search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) Number search for {pattern} @@ -6794,7 +6795,25 @@ screencol() *screencol()* the following mappings: > nnoremap GG ":echom ".screencol()."\n" nnoremap GG :echom screencol() + noremap GG echom screencol() < +screenpos({winid}, {lnum}, {col}) *screenpos()* + The result is a Dict with the screen position of the text + character in window {winid} at buffer line {lnum} and column + {col}. {col} is a one-based byte index. + The Dict has these members: + row screen row + col first screen column + endcol last screen column + curscol cursor screen column + If the specified position is not visible, all values are zero. + The "endcol" value differs from "col" when the character + occupies more than one screen cell. E.g. for a Tab "col" can + be 1 and "endcol" can be 8. + The "curscol" value is where the cursor would be placed. For + a Tab it would be the same as "endcol", while for a double + width character it would be the same as "col". + screenrow() *screenrow()* The result is a Number, which is the current screen row of the cursor. The top line has number one. -- cgit