-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undotree() in context of another window #4001
Labels
Comments
djpohly
added a commit
to djpohly/vim
that referenced
this issue
Apr 24, 2023
Problem: undotree() does not support getting the undo tree for any buffer other than the current one. Solution: Add an optional "buffer number" parameter to undotree(). If omitted, use the current buffer for backwards compatibility. Fixes vim#4001.
djpohly
added a commit
to djpohly/vim
that referenced
this issue
May 11, 2023
Problem: undotree() does not support getting the undo tree for any buffer other than the current one. Solution: Add an optional "buffer number" parameter to undotree(). If omitted, use the current buffer for backwards compatibility. Fixes vim#4001.
zeertzjq
added a commit
to zeertzjq/neovim
that referenced
this issue
Aug 11, 2023
Problem: undotree() only works for the current buffer Solution: Add an optional "buffer number" parameter to undotree(). If omitted, use the current buffer for backwards compatibility. closes: vim/vim#4001 closes: vim/vim#12292 vim/vim@5fee111 Co-authored-by: Devin J. Pohly <djpohly@gmail.com>
zeertzjq
added a commit
to neovim/neovim
that referenced
this issue
Aug 11, 2023
) Problem: undotree() only works for the current buffer Solution: Add an optional "buffer number" parameter to undotree(). If omitted, use the current buffer for backwards compatibility. closes: vim/vim#4001 closes: vim/vim#12292 vim/vim@5fee111 Co-authored-by: Devin J. Pohly <djpohly@gmail.com>
chrisbra
pushed a commit
to chrisbra/vim
that referenced
this issue
Sep 22, 2023
Problem: undotree() only works for the current buffer Solution: Add an optional "buffer number" parameter to undotree(). If omitted, use the current buffer for backwards compatibility. closes: vim#4001 closes: vim#12292 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Devin J. Pohly <djpohly@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know
undotree()
returns a RO undo tree, but is it possible to be able to pass abufnr()
(or awinnr()
) to it? It is impossible to get the undotree for another buffer or window. It would be nice if it could be a read-only variable inside&undotree
, but I am not sure if that is possible (so that one could usegetbufvar()
andgetwinvar()
)The text was updated successfully, but these errors were encountered: