mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
vim-patch:8.0.1433: illegal memory access after undo
Problem: Illegal memory access after undo. (Dominique Pelle)
Solution: Avoid the column becomes negative. (Christian Brabandt,
closes vim/vim#2533)
95dbcbea6d
This commit is contained in:
@@ -566,7 +566,9 @@ int utf_off2cells(unsigned off, unsigned max_off)
|
||||
/// Convert a UTF-8 byte sequence to a wide character
|
||||
///
|
||||
/// If the sequence is illegal or truncated by a NUL then the first byte is
|
||||
/// returned. Does not include composing characters for obvious reasons.
|
||||
/// returned.
|
||||
/// For an overlong sequence this may return zero.
|
||||
/// Does not include composing characters for obvious reasons.
|
||||
///
|
||||
/// @param[in] p String to convert.
|
||||
///
|
||||
|
Reference in New Issue
Block a user