aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorSean Dewar <6256228+seandewar@users.noreply.github.com>2026-03-24 17:04:55 +0000
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2026-03-29 23:49:24 +0100
commitd539d6ac6e3f382ef094f2d05540e29e4d86da35 (patch)
tree737ac195e4231a5498f29b76087b285c776748f8 /scripts/lintcommit.lua
parent9c15a382deac4119762fcd9341c560dbfdbb13bb (diff)
downloadrneovim-d539d6ac6e3f382ef094f2d05540e29e4d86da35.tar.gz
rneovim-d539d6ac6e3f382ef094f2d05540e29e4d86da35.tar.bz2
rneovim-d539d6ac6e3f382ef094f2d05540e29e4d86da35.zip
vim-patch:9.2.0252: Crash when ending Visual mode after curbuf was unloaded
Problem: if close_buffer() in set_curbuf() unloads curbuf, NULL pointer accesses may occur from enter_buffer() calling end_visual_mode(), as curbuf is already abandoned and possibly unloaded. Also, selection registers may not contain the selection with clipboard+=autoselect(plus). Solution: Move close_buffer()'s end_visual_mode() call to buf_freeall(), after any autocmds that may restart it, but just before freeing anything (Sean Dewar) related: vim/vim#19728 https://github.com/vim/vim/commit/a8fdfd4fcb92b9fcbed3ad0a6769cb6bad34d965 Maybe this should be considered partial? clipboard+=autoselect isn't implemented. If it is, we may need to update these comments to mention TextYankPost being possible, and unskip its test. Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions