1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-07-05 16:37:38 -04:00

Fix display update of tabs when terminal width is not a multiple of tabwidth and current in line position is over the terminal width.

This commit is contained in:
Renaud 2025-07-05 13:30:08 +08:00
parent 9562b0a2e8
commit 18962ffbe2

View File

@ -230,7 +230,7 @@ static void vtputuc( unicode_t c) {
if( c == '\t') {
sane_vtputc( viewtab ? 0xBB : ' ') ; /* 0xBB: '»' */
while( ((vtcol + lbound) % tabwidth) != 0)
while( vtcol % tabwidth)
sane_vtputc( ' ') ;
} else if( c < 0x20 || c == 0x7F) {
sane_vtputc( '^') ;