diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-20 18:46:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-20 18:46:05 +0200 |
commit | a13961536e5b1e686574826d4ed713e3d5526715 (patch) | |
tree | 63a0cbe0b2edab411bd7991afae9217b8b8e2729 /runtime | |
parent | dca7abe79cc4f0933473c3e4bcc75b46cc2c48fd (diff) | |
download | vim-git-a13961536e5b1e686574826d4ed713e3d5526715.tar.gz |
patch 8.1.2193: popup_setoptions(popup_getoptions()) does not workv8.1.2193
Problem: Popup_setoptions(popup_getoptions()) does not work.
Solution: Also accept a list with three entries for "moved" and
"mousemoved". (closes #5081)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/popup.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt index a438ce64e..d1dfd86a1 100644 --- a/runtime/doc/popup.txt +++ b/runtime/doc/popup.txt @@ -474,6 +474,8 @@ popup_notification({what}, {options}) *popup_notification()* popup_show({id}) *popup_show()* If {id} is a hidden popup, show it now. For {id} see `popup_hide()`. + If {id} is the info popup it will be positioned next to the + current popup menu item. popup_setoptions({id}, {options}) *popup_setoptions()* @@ -680,8 +682,13 @@ The second argument of |popup_create()| is a dictionary with options: - "expr": if the cursor moved outside |<cexpr>| - [{start}, {end}]: if the cursor moved before column {start} or after {end} + - [{lnum}, {start}, {end}]: if the cursor moved away + from line {lnum}, before column {start} or after + {end} The popup also closes if the cursor moves to another line or to another window. + mousemoved Like "moved" but referring to the mouse pointer + position cursorline non-zero: Highlight the cursor line. Also scrolls the text to show this line (only works properly when 'wrap' is off). |