diff options
Diffstat (limited to 'src/register.c')
-rw-r--r-- | src/register.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/register.c b/src/register.c index 461363be37..f3df79cfd6 100644 --- a/src/register.c +++ b/src/register.c @@ -1245,6 +1245,8 @@ op_yank(oparg_T *oap, int deleting, int mess) // double-count it. bd.startspaces = (ce - cs + 1) - oap->start.coladd; + if (bd.startspaces < 0) + bd.startspaces = 0; startcol++; } } |