1
0
forked from aniani/vim

patch 8.1.1813: ATTENTION prompt for a preview popup window

Problem:    ATTENTION prompt for a preview popup window.
Solution:   Close the popup window if aborting the buffer load.  Avoid getting
            the ATTENTION dialog.
This commit is contained in:
Bram Moolenaar
2019-08-04 20:44:19 +02:00
parent fb06d767a8
commit 2debf1c16b
6 changed files with 41 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
*windows.txt* For Vim version 8.1. Last change: 2019 Jul 27
*windows.txt* For Vim version 8.1. Last change: 2019 Aug 04
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -874,7 +874,16 @@ settings. The option is a comma separated list of values:
width maximum width of the popup
Example: >
:set previewpopup=height:10,width:60
<
A few peculiarities:
- If the file is in a buffer already, it will be re-used. This will allow for
editing the file while it's visible in the popup window.
- No ATTENTION dialog will be used, since you can't edit the file in the popup
window. However, if you later open the same buffer in a normal window, you
may not notice it's edited elsewhere. And when then using ":edit" to
trigger the ATTENTION and responding "A" for Abort, the preview window will
become empty.
*:pta* *:ptag*
:pta[g][!] [tagname]
Does ":tag[!] [tagname]" and shows the found tag in a