Document changes

pull/9/head release/0.9.3
Iron-E 4 years ago
parent d4e25db4c3
commit 97f0ac7922
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22

@ -349,7 +349,7 @@ VARIABLES *libmodal-lua-Popup-variables*
- api.nvim_get_option('cmdheight') - api.nvim_get_option('cmdheight')
- 1, - 1,
['style'] = 'minimal', ['style'] = 'minimal',
['width'] = 25 ['width'] = 1
} }
< <
@ -376,11 +376,22 @@ VARIABLES *libmodal-lua-Popup-variables*
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
FUNCTIONS *libmodal-lua-Popup-functions* FUNCTIONS *libmodal-lua-Popup-functions*
`self`:close() *libmodal-lua-Popup.close()* `self`:close({keepBuffer}) *libmodal-lua-Popup.close()*
Close the window that this `Popup` represents. Close the |Popup.window|.
Note: All variables of `Popup` are de-initialized after this method. Note: Variables of |Popup| are de-initialized after this method.
Parameters: ~
{keepBuffer} A `boolean` that (when `true`) indicates the underlying
              |scratch-buffer| should be kept
`self`:open() *libmodal-lua-Popup.open()*
Open the |Popup.window|.
Note: if the |Popup.window| is already open, then it will be reopened in
      case the |current_tabpage| has changed.
`self`:refresh({inputBytes}) *libmodal-lua-Popup.refresh()* `self`:refresh({inputBytes}) *libmodal-lua-Popup.refresh()*

@ -53,7 +53,7 @@ end
local _metaPopup = require('libmodal/src/classes').new(Popup.TYPE) local _metaPopup = require('libmodal/src/classes').new(Popup.TYPE)
-------------------------------------- -------------------------------------
--[[ SUMMARY: --[[ SUMMARY:
* Close `self.window` * Close `self.window`
* The `self` is inert after calling this. * The `self` is inert after calling this.
@ -61,14 +61,14 @@ local _metaPopup = require('libmodal/src/classes').new(Popup.TYPE)
--[[ PARAMS: --[[ PARAMS:
* `keep_buffer` => whether or not to keep `self.buffer`. * `keep_buffer` => whether or not to keep `self.buffer`.
]] ]]
-------------------------------------- -------------------------------------
function _metaPopup:close(keep_buffer) function _metaPopup:close(keepBuffer)
if valid(self.window) then if valid(self.window) then
api.nvim_win_close(self.window, false) api.nvim_win_close(self.window, false)
self.window = nil self.window = nil
end end
if not keep_buffer then if not keepBuffer then
self.buffer = nil self.buffer = nil
self._inputChars = nil self._inputChars = nil
end end

Loading…
Cancel
Save