On Wed, Oct 31, 2001 at 11:31:57PM +0900, Hataguchi Takeshi wrote:
> On Sun, 28 Oct 2001, Thomas Dickey wrote:
> 
> > would LYclrtoeol() work, rather than this explicit loop on LYaddch()?
> > 
> > (the loop limit is a problem, because it is not necessarily directly
> > related to the amount which can be cleared on the screen)
> 
> I couldn't understand the problem you wrote here.
> I think the amount of the loop limit can be calculated easily
> from the cursor position and the width of the screen.  And
> multibyte characters don't cause any problems in LYclrtoeol.

as I read the proposed patch, it used the strlen() of the current editing
buffer to decide how many cells to fill.  That could be longer than the width
of the screen, for instance, if the buffer was multibyte characters.  I thought
it would be simpler to use LYclrtoeol() to erase the remainder of the line.

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to