| commit | d25f003342aca9889067f2e839963dfeccf1fe05 | [log] [tgz] |
|---|---|---|
| author | Bram Moolenaar <Bram@vim.org> | Thu Jun 30 12:30:19 2022 +0100 |
| committer | Bram Moolenaar <Bram@vim.org> | Thu Jun 30 12:30:19 2022 +0100 |
| tree | 86676c2d731a231f44a6b35fc4ccbda15fa8163e | |
| parent | b0375d466e5ca57dca71995c342870b3226d8115 [diff] [blame] |
patch 9.0.0011: reading beyond the end of the line with put command Problem: Reading beyond the end of the line with put command. Solution: Adjust the end mark position.
diff --git a/src/register.c b/src/register.c index 93860ba..30e2001 100644 --- a/src/register.c +++ b/src/register.c
@@ -1918,6 +1918,8 @@ vim_memset(ptr, ' ', (size_t)spaces); ptr += spaces; } + else + totlen -= spaces; // didn't use these spaces } // may insert some spaces after the new text