I’ve been trying to fix a bug with with nomad all morning so I ’m going to take a break.
Essentially it fails to deal with the terminal changing in size such that there are fewer rows on display than there are in the internal buffer.
Before the resize, the cursor is positioned by the running program in the buffer and the program might assume that during a terminal resize, the cursor will stay in the same position. I’m pretty sure bash assumes this, for example, because it doesn’t send any cursor position updates when the program is sent the new size of the terminal.
But after a resize, the program might send a \n
, which
will incorrectly insert text at the row index that is now
beyond the now smaller buffer.