mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #23228 from seandewar/cmdwin-jail
fix(api): use `text_locked()` to check for textlock
This commit is contained in:
@@ -1200,6 +1200,9 @@ nvim_open_term({buffer}, {opts}) *nvim_open_term()*
|
||||
|nvim_chan_send()| can be called immediately to process sequences in a
|
||||
virtual terminal having the intended size.
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
|
||||
Parameters: ~
|
||||
• {buffer} the buffer to use (expected to be empty)
|
||||
• {opts} Optional parameters.
|
||||
@@ -1365,7 +1368,7 @@ nvim_set_current_buf({buffer}) *nvim_set_current_buf()*
|
||||
Sets the current buffer.
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
not allowed when |textlock| is active or in the |cmdwin|
|
||||
|
||||
Parameters: ~
|
||||
• {buffer} Buffer handle
|
||||
@@ -1389,7 +1392,7 @@ nvim_set_current_tabpage({tabpage}) *nvim_set_current_tabpage()*
|
||||
Sets the current tabpage.
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
not allowed when |textlock| is active or in the |cmdwin|
|
||||
|
||||
Parameters: ~
|
||||
• {tabpage} Tabpage handle
|
||||
@@ -1398,7 +1401,7 @@ nvim_set_current_win({window}) *nvim_set_current_win()*
|
||||
Sets the current window.
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
not allowed when |textlock| is active or in the |cmdwin|
|
||||
|
||||
Parameters: ~
|
||||
• {window} Window handle
|
||||
@@ -2163,7 +2166,7 @@ nvim_buf_delete({buffer}, {opts}) *nvim_buf_delete()*
|
||||
Deletes the buffer. See |:bwipeout|
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
not allowed when |textlock| is active or in the |cmdwin|
|
||||
|
||||
Parameters: ~
|
||||
• {buffer} Buffer handle, or 0 for current buffer
|
||||
@@ -2426,6 +2429,9 @@ nvim_buf_set_text({buffer}, {start_row}, {start_col}, {end_row}, {end_col},
|
||||
Prefer |nvim_buf_set_lines()| if you are only adding or deleting entire
|
||||
lines.
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
|
||||
Parameters: ~
|
||||
• {buffer} Buffer handle, or 0 for current buffer
|
||||
• {start_row} First line index
|
||||
@@ -2894,7 +2900,7 @@ nvim_win_hide({window}) *nvim_win_hide()*
|
||||
or |nvim_win_close()|, which will close the buffer.
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
not allowed when |textlock| is active or in the |cmdwin|
|
||||
|
||||
Parameters: ~
|
||||
• {window} Window handle, or 0 for current window
|
||||
@@ -2912,7 +2918,7 @@ nvim_win_set_buf({window}, {buffer}) *nvim_win_set_buf()*
|
||||
Sets the current buffer in a window, without side effects
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
not allowed when |textlock| is active or in the |cmdwin|
|
||||
|
||||
Parameters: ~
|
||||
• {window} Window handle, or 0 for current window
|
||||
@@ -2999,7 +3005,7 @@ nvim_open_win({buffer}, {enter}, {*config}) *nvim_open_win()*
|
||||
<
|
||||
|
||||
Attributes: ~
|
||||
not allowed when |textlock| is active
|
||||
not allowed when |textlock| is active or in the |cmdwin|
|
||||
|
||||
Parameters: ~
|
||||
• {buffer} Buffer to display, or 0 for current buffer
|
||||
|
||||
Reference in New Issue
Block a user