Index | Thread | Search

From:
Helg <helg-openbsd@gmx.de>
Subject:
Re: bin/ksh: fix emacs/vi line editor getting wrong terminal width
To:
"Kirill A. Korinsky" <kirill@korins.ky>
Cc:
tech@openbsd.org
Date:
Tue, 20 Jan 2026 22:16:28 +0100

Download raw body.

Thread
It works in both emacs and vi mode.

However, in testing this, I've found another bug.

I've never looked too closely at this but here's how I understand
it should work. There are 3 possibilities when an indicator should
be displayed because some text is not visible.

"> " There is more text to the right
"< " There is more text to the left
"* " There is more text in both directions (vi mode shows + instead)

The "> " does not appear at the right edge of the window but about
10 characters from the edge. This sometime results in the > appearing
in the middle of text. It should be output in the same location as
< and *.

Interestingly, vi mode always displays the indicator 10 characters
from the right edge of the window.  This is too far indented for my
taste but, either way, it should be consistent in all cases.

Any chance you can fix this too?