summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-15 14:31:55 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-15 14:31:55 +0200
commitdfa97f2aed3d8ca195d09e2ce91cef227f933961 (patch)
tree70f9b28605732f10aef417ac5293a0f98dae4996 /runtime
parentfc06cbbf8601a453b4a62a17558821add09f863f (diff)
downloadvim-git-dfa97f2aed3d8ca195d09e2ce91cef227f933961.tar.gz
patch 8.1.1538: cannot specify highlighting for notificationsv8.1.1538
Problem: Cannot specify highlighting for notifications. Solution: Use the PopupNotification group if it exists. Add a minimal width to notifications.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/popup.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt
index 71c7bc0d3..3ee92f269 100644
--- a/runtime/doc/popup.txt
+++ b/runtime/doc/popup.txt
@@ -1,4 +1,4 @@
-*popup.txt* For Vim version 8.1. Last change: 2019 Jun 12
+*popup.txt* For Vim version 8.1. Last change: 2019 Jun 15
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -93,8 +93,6 @@ TODO:
- Add 'balloonpopup': instead of showing text, let the callback open a popup
window and return the window ID. The popup will then be closed when the
mouse moves, except when it moves inside the popup.
-- For notifications use the PopupNotification highlight group, fall back to
- WarningMsg if it isn't defined.
- For the "moved" property also include mouse movement?
- Make redrawing more efficient and avoid flicker:
- put popup menu also put in popup_mask?
@@ -300,6 +298,7 @@ popup_notification({text}, {options}) *popup_notification()*
call popup_create({text}, {
\ 'line': 1,
\ 'col': 10,
+ \ 'minwidth': 20,
\ 'time': 3000,
\ 'tabpage': -1,
\ 'zindex': 200,
@@ -308,6 +307,8 @@ popup_notification({text}, {options}) *popup_notification()*
\ 'border': [],
\ 'padding': [0,1,0,1],
\ })
+< The PopupNotification highlight group is used instead of
+ WarningMsg if it is defined.
< The position will be adjusted to avoid overlap with other
notifications.
Use {options} to change the properties.