#3677: reflow_text does not play well with lines beginning with space or tab
--------------------------------+----------------------
Reporter: jiang.qian | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone: 1.6
Component: display | Version: 1.5.22
Keywords: pager, reflow_text |
--------------------------------+----------------------
When I use the new feature $reflow_text$, if a line starts with space or
a tab, like this
(tab) this is a long line this is a long line this is a long line this
is a long line this is a long line this is a long line this is a long line
this is a long line.
The reflow_wrap seems to be calculated from the beginning of the
text (the "t" of the first word "this"), rather than from the beginning of
the
left edge of the screen. Editors, for example vim, when I set to support
flowed text by setting "w" in"formatoptions" (in addition to setting
"text_flowed" in the mutt configuration), the textwidth is counted from
the left screen edge.
This means that when using the pager to view a text composed with flow
support in vim and mutt, the first line of the text starting with space
will jut out to the right edge of the screen by the space roughly
equivalent to the space in the beginning of the text.
I don't know how to implement this in mutt, but I believe the
reflow_wrap width should be set to count from the left screen edge, not
the beginning of the text as I believe is now.
Mutt 1.5.22 (2013-10-16)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.
System: Linux 2.6.38-15-generic (i686)
ncurses: ncurses 5.7.20090803 (compiled with 5.7)
libidn: 1.15 (compiled with 1.15)
hcache backend: Berkeley DB 4.8.24: (August 14, 2009)
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3677>
Mutt <http://www.mutt.org/>
The Mutt mail user agent