[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#742271: c% mangles insertion point



Package: nvi
Version: 1.81.6-8.2
Severity: normal

The command "c%" (replace text to matching bracket) inserts new text in
the wrong place if the matching bracket is at the end of a different line.

To reproduce: start nvi with no .exrc.  Insert text "foo{", newline,
"}".  Position cursor on the "{".  Type "c%bar", ESC.  End result
is that the line contains "fobar " instead of the expected "foobar".
During the input of the "bar" text, the display reflects the loss of the
"o", and may also show some phantom character (whose identity varies)
following the spurious space.  The phantom character vanishes upon ESC,
but the space remains.

-zefram


Reply to: