mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.2362
Problem: Illegal memory access with ":1@". (Dominique Pelle) Solution: Correct cursor column after setting the line number. Also avoid calling end_visual_mode() when not in Visual mode.
This commit is contained in:
@@ -580,7 +580,7 @@ aucmd_abort:
|
||||
|
||||
/* When closing the current buffer stop Visual mode before freeing
|
||||
* anything. */
|
||||
if (buf == curbuf
|
||||
if (buf == curbuf && VIsual_active
|
||||
#if defined(EXITFREE)
|
||||
&& !entered_free_all_mem
|
||||
#endif
|
||||
@@ -1389,7 +1389,7 @@ do_buffer(
|
||||
}
|
||||
|
||||
/* When closing the current buffer stop Visual mode. */
|
||||
if (buf == curbuf)
|
||||
if (buf == curbuf && VIsual_active)
|
||||
end_visual_mode();
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user