-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: a9b4d09e35ad848a0352f38e876f6f232a167c27: path_to: revision_to:
commit a9b4d09e35ad848a0352f38e876f6f232a167c27 Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com> Date: Sat Oct 9 22:33:45 2010 +0000 Change scr_add_lines to remove characters from the right when there are not enough columns to insert a character and DECAWM mode is not set, rather than looping endlessly. diff --git a/src/screen.C b/src/screen.C
--- a/src/screen.C +++ b/src/screen.C @@ -913,10 +913,15 @@ rxvt_term::scr_add_lines (const wchar_t *str, int len, int minlines) NOTHROW // if the character doesn't fit into the remaining columns... if (expect_false (screen.cur.col > ncol - width && ncol >= width)) { - // ... artificially enlargen the previous one - c = NOCHAR; - // and try the same character next loop iteration - --str; + if (screen.flags & Screen_Autowrap) + { + // ... artificially enlargen the previous one + c = NOCHAR; + // and try the same character next loop iteration + --str; + } + else + screen.cur.col = ncol - width; } line->touch ();
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 13:16:43 2024