Fixed small bug in tgetline

This commit is contained in:
Ashish Kumar Yadav 2021-12-26 19:55:56 +05:30
parent 0dd12d9e02
commit 5dbb218d8b
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ tgetline(char *buf, const Glyph *fgp, int gettab)
char *ptr;
const Glyph *lgp = &fgp[term.col - 1];
while (lgp > fgp && lgp->u == ' ')
while (lgp > fgp && lgp->state == GLYPH_EMPTY)
lgp--;
ptr = tgetglyphs(buf, fgp, lgp, gettab);
if (!(lgp->mode & ATTR_WRAP))