aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2024-02-07 21:44:42 +0000
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2024-03-08 23:24:04 +0000
commitb1577d371a6db43222de9e3a525def82320ebdb1 (patch)
tree0be83eff7c0686f63c553f92b1de0486f1867706 /runtime/doc
parent5d58136cccc760f6d95eb45b46f2ad60f06b103b (diff)
downloadrneovim-b1577d371a6db43222de9e3a525def82320ebdb1.tar.gz
rneovim-b1577d371a6db43222de9e3a525def82320ebdb1.tar.bz2
rneovim-b1577d371a6db43222de9e3a525def82320ebdb1.zip
fix(api): make win_set_config with "win" for splits need "split/vertical"
Problem: currently, for splits, nvim_win_set_config accepts win without any of split or vertical set, which has little effect and seems error-prone. Solution: require at least one of split or vertical to also be set for splits. Also, update nvim_win_set_config docs, as it's no longer limited to just floating and external windows.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/api.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 1b00777532..125976342b 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -3291,11 +3291,11 @@ nvim_win_get_config({window}) *nvim_win_get_config()*
Map defining the window configuration, see |nvim_open_win()|
nvim_win_set_config({window}, {config}) *nvim_win_set_config()*
- Configures window layout. Currently only for floating and external windows
- (including changing a split window to those layouts).
+ Configures window layout. Cannot be used to move the last window in a
+ tabpage to a different one.
- When reconfiguring a floating window, absent option keys will not be
- changed. `row`/`col` and `relative` must be reconfigured together.
+ When reconfiguring a window, absent option keys will not be changed.
+ `row`/`col` and `relative` must be reconfigured together.
Parameters: ~
• {window} Window handle, or 0 for current window