CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/08/23 15:02:10
Modified files:
usr.bin/vi/common: put.c
usr.bin/vi/ex : ex_move.c ex_put.c
usr.bin/vi/include: com_extern.h
usr.bin/vi/vi : v_put.c
Log message:
vi: fix 'p' command with a count
This moves the count support from v_put() to put(). Previously,
v_put() would call put() "count" times. Because put() also updates
the cursor position, this resulted in the text being pasted in the
wrong place after the first call to put(). Moving the "count" loop
into put() itself means the cursor position is only updated once.
>From Walter Alejandro Iglesias