mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:9.0.0947: invalid memory access in substitute with function (#23126)
Problem: Invalid memory access in substitute with function that goes to
another file.
Solution: Check for text locked in CTRL-W gf.
cc762a48d4
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -462,7 +462,7 @@ static bool check_text_locked(oparg_T *oap)
|
||||
/// If text is locked, "curbuf->b_ro_locked" or "allbuf_lock" is set:
|
||||
/// Give an error message, possibly beep and return true.
|
||||
/// "oap" may be NULL.
|
||||
static bool check_text_or_curbuf_locked(oparg_T *oap)
|
||||
bool check_text_or_curbuf_locked(oparg_T *oap)
|
||||
{
|
||||
if (check_text_locked(oap)) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user