<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3453: mutt-1.5.18: wrap line as they can be selected with a double click



On Fri, 24 Sep 2010, Michael Elkins wrote:

On Mon, Sep 20, 2010 at 06:07:59PM -0400, Thomas Dickey wrote:
It's lost by cursor-movement optimization (in ncurses, curses or slang).

xterm sets the line-wrap flag when text is written automatically wrapping on the right margin. Optimization may notice that it's faster to jump to the next line by some other way.

Does the fact that mutt writes to the screen 1 character at a time have any effect? I just verified that the pager code does not do addch('\n') when line wrapping (pager.c:1490), it lets ncurses do the wrapping. mutt *does* reset the color attributes before writing the next line.

no - using addch has no effect. curses collects all of that information and writes out the changes to the screen when "refresh" is called (which is also a side-effect of calling getch).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net