comparison runtime/doc/popup.txt @ 28319:427600f3b1c5 v8.2.4685

patch 8.2.4685: when a swap file is found for a popup there is no dialog Commit: https://github.com/vim/vim/commit/188639d75c363dffaf813e8e2209f7350ad1e871 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 4 16:57:21 2022 +0100 patch 8.2.4685: when a swap file is found for a popup there is no dialog Problem: When a swap file is found for a popup there is no dialog and the buffer is loaded anyway. Solution: Silently load the buffer read-only. (closes #10073)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Apr 2022 18:00:04 +0200
parents 3e661b0cf500
children 6dd88e45d47d
comparison
equal deleted inserted replaced
28318:0a9769423ce4 28319:427600f3b1c5
268 - a list of strings 268 - a list of strings
269 - a list of text lines with text properties 269 - a list of text lines with text properties
270 When {what} is not a buffer number, a buffer is created with 270 When {what} is not a buffer number, a buffer is created with
271 'buftype' set to "popup". That buffer will be wiped out once 271 'buftype' set to "popup". That buffer will be wiped out once
272 the popup closes. 272 the popup closes.
273
274 if {what} is a buffer number and loading the buffer runs into
275 an existing swap file, it is silently opened read-only, as if
276 a |SwapExists| autocommand had set |v:swapchoice| to 'o'.
277 This is because we assume the buffer is only used for viewing.
273 278
274 {options} is a dictionary with many possible entries. 279 {options} is a dictionary with many possible entries.
275 See |popup_create-arguments| for details. 280 See |popup_create-arguments| for details.
276 281
277 Returns a window-ID, which can be used with other popup 282 Returns a window-ID, which can be used with other popup