patch 9.1.1216: Pasting the '.' register multiple times may not work

Problem:  Pasting the '.' register multiple times may work incorrectly
          when the last insert starts with Ctrl-D and ends with '0'.
          (after 9.1.1212)
Solution: Restore the missing assignment (zeertzjq).

closes: #16908

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-03-17 21:02:50 +01:00
committed by Christian Brabandt
parent ad2f6b6662
commit 61b3544424
4 changed files with 40 additions and 7 deletions

View File

@ -204,7 +204,7 @@ get_recorded(void)
get_inserted(void)
{
size_t len = 0;
char_u* str = get_buffcont(&redobuff, FALSE, &len);
char_u *str = get_buffcont(&redobuff, FALSE, &len);
string_T ret = { str, len };
return ret;
}