1
0
forked from aniani/vim

patch 8.0.0222: blockwise put on multi-byte character misplaced

Problem:    When a multi-byte character ends in a zero byte, putting blockwise
            text puts it before the character instead of after it.
Solution:   Use int instead of char for the character under the cursor.
            (Luchr, closes #1403)  Add a test.
This commit is contained in:
Bram Moolenaar
2017-01-22 20:04:51 +01:00
parent 6a8ede99dd
commit c81299684b
5 changed files with 17 additions and 1 deletions

View File

@@ -3550,7 +3550,7 @@ do_put(
*/
if (y_type == MBLOCK)
{
char c = gchar_cursor();
int c = gchar_cursor();
colnr_T endcol2 = 0;
if (dir == FORWARD && c != NUL)