Mercurial > vim
comparison runtime/doc/popup.txt @ 18398:21c25bee9df8 v8.1.2193
patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work
Commit: https://github.com/vim/vim/commit/a13961536e5b1e686574826d4ed713e3d5526715
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 20 18:46:05 2019 +0200
patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work
Problem: Popup_setoptions(popup_getoptions()) does not work.
Solution: Also accept a list with three entries for "moved" and
"mousemoved". (closes #5081)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Oct 2019 19:00:03 +0200 |
parents | 375a7ecdb351 |
children | 6d11fc4aa683 |
comparison
equal
deleted
inserted
replaced
18397:3bc55782efa5 | 18398:21c25bee9df8 |
---|---|
472 GetText()->popup_notification({}) | 472 GetText()->popup_notification({}) |
473 | 473 |
474 popup_show({id}) *popup_show()* | 474 popup_show({id}) *popup_show()* |
475 If {id} is a hidden popup, show it now. | 475 If {id} is a hidden popup, show it now. |
476 For {id} see `popup_hide()`. | 476 For {id} see `popup_hide()`. |
477 If {id} is the info popup it will be positioned next to the | |
478 current popup menu item. | |
477 | 479 |
478 | 480 |
479 popup_setoptions({id}, {options}) *popup_setoptions()* | 481 popup_setoptions({id}, {options}) *popup_setoptions()* |
480 Override options in popup {id} with entries in {options}. | 482 Override options in popup {id} with entries in {options}. |
481 These options can be set: | 483 These options can be set: |
678 - "word": if the cursor moved outside |<cword>| | 680 - "word": if the cursor moved outside |<cword>| |
679 - "WORD": if the cursor moved outside |<cWORD>| | 681 - "WORD": if the cursor moved outside |<cWORD>| |
680 - "expr": if the cursor moved outside |<cexpr>| | 682 - "expr": if the cursor moved outside |<cexpr>| |
681 - [{start}, {end}]: if the cursor moved before column | 683 - [{start}, {end}]: if the cursor moved before column |
682 {start} or after {end} | 684 {start} or after {end} |
685 - [{lnum}, {start}, {end}]: if the cursor moved away | |
686 from line {lnum}, before column {start} or after | |
687 {end} | |
683 The popup also closes if the cursor moves to another | 688 The popup also closes if the cursor moves to another |
684 line or to another window. | 689 line or to another window. |
690 mousemoved Like "moved" but referring to the mouse pointer | |
691 position | |
685 cursorline non-zero: Highlight the cursor line. Also scrolls the | 692 cursorline non-zero: Highlight the cursor line. Also scrolls the |
686 text to show this line (only works properly | 693 text to show this line (only works properly |
687 when 'wrap' is off). | 694 when 'wrap' is off). |
688 zero: Do not highlight the cursor line. | 695 zero: Do not highlight the cursor line. |
689 Default is zero, except for |popup_menu()|. | 696 Default is zero, except for |popup_menu()|. |