[tin-dev] full screen width in raw-mode?
Urs Janßen
urs at tin.org
Wed Aug 9 19:03:10 CEST 2023
cook.c:put_cooked() wraps at cCOLS (if tinrc.wrap_column is 0)
page.c:toggle_raw() wraps at cCOLS-1 (in raw-mode)
so toggling view with ^H on articles with long (header)-lines (i.e
tinrc.news_headers_to_display=Path ...) gives different results ...
I wonder why we have -1 here (for years) and if the following would have
any unwanted side effects?
=== modified file 'src/page.c'
--- old/src/page.c 2023-06-27 01:46:29 +0000
+++ new/src/page.c 2023-08-09 16:36:44 +0000
@@ -2058,7 +2058,7 @@
p = line;
while (*p) {
- space = cCOLS - 1;
+ space = cCOLS;
while ((space > 0) && *p) {
#if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE)
More information about the tin-dev
mailing list