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

Bug#2832: nvi likes turning auto-margins off



Package: nvi
Version: 1.34-12

Pretty much everyone wants to have auto-margins turned on all the
time. And up until the latest ncurses, this was the case.

But the combination of:
  a) new ncurses terminfo entry for xterm including smam and rmam
     codes (turn on/off automargins)
  b) nvi turning automargins on at startup, and off on quit

means that every time you use vi, automargins are turned off.

To repeat:

  1) ensure automargins are on in an xterm (CTRL-middle mouse, 4th
       menu option should be ticked)
  2) start vi
  3) quit vi
  4) CTRL-middle mouse now shows that automargins are off. This can be
       verified by typing a long command: the cursor stays in the
       bottom right hand corner, rather than wrapping round.

Could this be fixed in vi?  (or can I configure vi not to be so
anti-social?)


Austin
(For the record, I'm using:
ncurses-base    1.9.8a-5
ncurses-bin     1.9.8a-5
ncurses-term    1.9.8a-(5)
ncurses3.0      1.9.8a-5
ncurses3.0-dev  1.9.8a-5)


Reply to: