[vim/vim] Crash when using :tabonly in BufUnload (PR #19186)

1 view
Skip to first unread message

zeertzjq

unread,
12:45 AM (3 hours ago) 12:45 AM
to vim/vim, Subscribed

Problem: Crash when using :tabonly in BufUnload.
Solution: Set curbuf when setting curwin->w_buffer. Don't close buffer
when there are no other buffers.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19186

Commit Summary

  • a264f2e Crash when using :tabonly in BufUnload

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19186@github.com>

zeertzjq

unread,
1:36 AM (2 hours ago) 1:36 AM
to vim/vim, Push

@zeertzjq pushed 1 commit.

  • 913de47 Crash when using :tabonly in BufUnload


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19186/before/a264f2e6e0049e05d51c04c7212b1c5f9c593db6/after/913de47d922cd10b56a51d03c727850ab0c917b5@github.com>

zeertzjq

unread,
1:37 AM (2 hours ago) 1:37 AM
to vim/vim, Subscribed

@zeertzjq commented on this pull request.


In src/testdir/test_autocmd.vim:

> +  " FIXME: This dereferences a NULL firstbuf.
+  " call Run_test_BufUnload_tabonly('setlocal bufhidden=wipe')

This also crashes, but I can't figure out how to fix it.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19186/review/3669164942@github.com>

Reply all
Reply to author
Forward
0 new messages