mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2933: when 'clipboard' is "unnamed" zp does not work correctly
Problem: When 'clipboard' is "unnamed" zp and zP do not work correctly. Solution: Pass -1 to str_to_reg() and fix computing the character width instead of using the byte length. (Christian Brabandt, closes #8301, closes #8317)
This commit is contained in:
@@ -4308,7 +4308,6 @@ mb_charlen(char_u *str)
|
||||
return count;
|
||||
}
|
||||
|
||||
#if (defined(FEAT_SPELL) || defined(FEAT_EVAL)) || defined(PROTO)
|
||||
/*
|
||||
* Like mb_charlen() but for a string with specified length.
|
||||
*/
|
||||
@@ -4323,7 +4322,6 @@ mb_charlen_len(char_u *str, int len)
|
||||
|
||||
return count;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Try to un-escape a multi-byte character.
|
||||
|
Reference in New Issue
Block a user