diff options
Diffstat (limited to 'mail/mutt/files/patch-nbsp')
-rw-r--r-- | mail/mutt/files/patch-nbsp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/mutt/files/patch-nbsp b/mail/mutt/files/patch-nbsp new file mode 100644 index 000000000000..e996a05d1ea0 --- /dev/null +++ b/mail/mutt/files/patch-nbsp @@ -0,0 +1,22 @@ +diff --git a/pager.c b/pager.c +--- pager.c ++++ pager.c +@@ -1187,10 +1187,17 @@ + last_special = special; + } + +- if (IsWPrint (wc)) ++ if (IsWPrint (wc) || (Charset_is_utf8 && wc == 0x00A0)) + { + if (wc == ' ') + space = ch; ++ else if (Charset_is_utf8 && wc == 0x00A0) ++ { ++ /* Convert non-breaking space to normal space. The local variable ++ * `space' is not set here so that the caller of this function won't ++ * attempt to wrap at this character. */ ++ wc = ' '; ++ } + t = wcwidth (wc); + if (col + t > wrap_cols) + break; |