System: OpenBSD 7.2
Architecture: OpenBSD.amd64
Machine: amd64

Description

There is a bug in ex's 's' command.

With the 'number' option OFF, and when using the 'c' flag, ex correctly 
"underlines" the part of the text to be replaced with carets. For instance, 
when issuing :s/men/MEN/c for:

Five women came to the party.
       ^^^[ynq]

However, with the 'number' option ON, the caret underline is incorrectly offset 
by the number of characters that matches the indent used when numbering is ON. 

Five women came to the party.
               ^^^[ynq] 
Perhaps, on the contrary, the error lies in the fact that the displayed line 
does not respect the NUMBER option enabled (as it is displayed without the line 
number) so the line is positioned incorrectly and the underlining is positioned 
'correctly'.

Reply via email to