On Tuesday, September 10, 2019 at 9:23:45 PM UTC+2, Bram Moolenaar wrote:
>
>
> Patch 8.1.2020
> Problem: It is not easy to change the window layout.
> Solution: Add win_splitmove(). (Andy Massimino, closes #4561)
> Files: runtime/doc/eval.txt, src/evalfunc.c, src/evalwindow.c,
> src/proto/evalwindow.pro, src/testdir/test_window_cmd.vim
>
>
> *** ../vim-8.1.2019/runtime/doc/eval.txt 2019-09-08
> 21:51:36.449843947 +0200
> --- runtime/doc/eval.txt 2019-09-10 21:15:07.066394525 +0200
> ***************
> *** 2870,2875 ****
> --- 2875,2882 ----
> win_id2tabwin({expr}) List get tab and window nr
> from window ID
> win_id2win({expr}) Number get window nr from
> window ID
> win_screenpos({nr}) List get screen position of
> window {nr}
> + win_splitmove({nr}, {target} [, {options}])
> + none move window {nr} to split
> of {target}
>
Shouldn't the "none" be changed to "Number"? The detailed docs say the
return value is either 0 or 1.
> ...
> + win_splitmove({nr}, {target} [,
> {options}]) *win_splitmove()*
> + Move the window {nr} to a new split of the window
> {target}.
> + This is similar to moving to {target}, creating a new
> window
> + using |:split| but having the same contents as window
> {nr}, and
> + then closing {nr}.
> +
> + Both {nr} and {target} can be window numbers or
> |window-ID|s.
> +
> + Returns zero for success, non-zero for failure.
> ...
Tom
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/06122dd1-7a24-4190-9e5f-5bc71f06e967%40googlegroups.com.