fixes: #21134
Signed-off-by: Mao-Yining mao.y...@outlook.com
https://github.com/vim/vim/pull/21139
(3 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Since this is available for only windows in this tab. Maybe it's better to use winnr. This is just a demo. I'd like to hear about whether this fucntion can be accept.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I do not think getwininfo() is the right place for this. w_lines[] is the
redraw cache: it holds what the last redraw of that window left behind, which
is why the documentation has to say that a window in another tab page comes
back empty, and why the test needs redraw. That ties a script interface to
when Vim happens to draw.
It also makes every getwininfo() call allocate a List of one number per
screen line for every window, and that function is called often, from
statuslines among others. If this is worth having, it should be a function of
its own, the way the title of #21134 puts it, so that only those who ask for
it pay for it.
The loop in #21134 already uses foldclosedend() to jump over a closed fold,
so it costs one step per visible line rather than per buffer line. Can you
show measurements of that being too slow?
Two smaller things: the new item is tagged {only with the +quickfix feature}, which was copied from loclist, and get_winlines() can return
NULL, which dict_add_list() dereferences (dict.c:495).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
OK
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()