Fix a bug in ex's 's' command with the 'c' flag when 'number' is off.
authormillert <millert@openbsd.org>
Fri, 23 Jun 2023 15:06:45 +0000 (15:06 +0000)
committermillert <millert@openbsd.org>
Fri, 23 Jun 2023 15:06:45 +0000 (15:06 +0000)
commit80ddc267446596956ab5c3c464f5369de59a72c6
tree5126a398d06631118bd764289ed4fd8e7e9dcf46
parentb268327a38d43bac86a5f83c3530103e100b0ac4
Fix a bug in ex's 's' command with the 'c' flag when 'number' is off.
The underlining was positioned in the wrong place.  This fixes
the problem and matches historic ex behavior.  OK op@
usr.bin/vi/ex/ex.c
usr.bin/vi/ex/ex_subst.c