On Wed, Mar 22, 2017 at 11:55:33AM +0100, hiro wrote:
> example: make the terminal smaller, make it bigger again: lines have
> been cut off...
It is a bug in st and xterm. tmux and screen handle it by reflowing
lines, wrapping them if necessary. dvtm makes end of lines invisible
[1] but keeps th
It is a bug in st and xterm. tmux and screen handle it by
reflowing lines, wrapping them if necessary.
... And this tmux wrapping is thoroughly broken.
E.g. https://github.com/tmux/tmux/issues/516
dvtm makes end of lines invisible [1] but keeps them in memory.
But this idea seems reasonable
---
st.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index d7bd32a..ae93ade 100644
--- a/st.c
+++ b/st.c
@@ -2537,7 +2537,7 @@ tresize(int col, int row)
}
/* allocate any new rows */
- for (/* i == minrow */; i < row; i++) {
+ for (
---
st.c | 32 +---
st.h | 1 +
2 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/st.c b/st.c
index ae93ade..2eab32a 100644
--- a/st.c
+++ b/st.c
@@ -1238,8 +1238,8 @@ tclearregion(int x1, int y1, int x2, int y2)
if (y1 > y2)
temp
On Sat, Mar 25, 2017 at 09:55:14PM +0200, Amer wrote:
> > It is a bug in st and xterm. tmux and screen handle it by
> > reflowing lines, wrapping them if necessary.
>
> ... And this tmux wrapping is thoroughly broken.
> E.g. https://github.com/tmux/tmux/issues/516
>
> > dvtm makes end of lines
Updated patch to clear up to maxcol in some cases and avoid glitches
when using ncurses programs.
-- >8 --
Subject: [st] [PATCH 2/2] Keep end of lines in memory when resizing terminal
---
st.c | 50 ++
st.h | 1 +
2 files changed, 27 insertions(+),