Hi Erik,
On Mon, Apr 12, 2021 at 07:08:40PM +0300, Erik Ruotsalainen wrote:
| Hi all,
|
| well, here's one obvious fix, at least:
Thanks .. your fix prevents the problem and works for me.
For some reason it's now harder to reproduce (simply starting vi
without arguments and setting w to 0 doesn't crash the editor anymore
- it used to do this consistently for me several months ago), but one
easy way to still crash vi is to open a file that has more lines than
your current terminal, go to the end of the file (G) and then :set w=0.
That results in a crash 10 times out of 10.
I couldn't get a vi with your diff applied to crash the same way. I
tried a couple of other (small) values for w, but things remained
stable.
Thanks again!
Paul
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/