issuing the command in ex when the number option is enabled (the output is fine if number is not enabled):
:s/men/MEN/c
will display:
Five women came to the party.
^^^[ynq]
The confirmation line is indented properly for output when the number option is enabled, but the line above it lacks the expected line number. The output should be, e.g.:
1 Five women came to the party.
^^^[ynq]
The line number is also missing when the line is reprinted after the confirmation prompt. With the changes in this PR, the output becomes:
:set number
:s/men/MEN/c
1 Five women came to the party.
^^^[ynq]n
1 Five women came to the party.
This matches historic ex behavior and appears to match POSIX, though it is not 100% clear on this specific issue.
Currently, given the line:
issuing the command in ex when the number option is enabled (the output is fine if number is not enabled):
will display:
The confirmation line is indented properly for output when the number option is enabled, but the line above it lacks the expected line number. The output should be, e.g.:
The line number is also missing when the line is reprinted after the confirmation prompt. With the changes in this PR, the output becomes:
This matches historic ex behavior and appears to match POSIX, though it is not 100% clear on this specific issue.