1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix logterminal TERMMODE_LINEBUFFER checking.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-12-12 19:21:35 +01:00
parent cf5c2706b3
commit 716ac0dceb

View file

@ -105,7 +105,7 @@ int LogTerminal::settermmode(ioctx_t* /*ctx*/, unsigned newtermmode)
if ( oldutf8 != newutf8 ) if ( oldutf8 != newutf8 )
partiallywritten = 0; partiallywritten = 0;
termmode = newtermmode; termmode = newtermmode;
if ( (!newtermmode & TERMMODE_LINEBUFFER) ) if ( !(newtermmode & TERMMODE_LINEBUFFER) )
CommitLineBuffer(); CommitLineBuffer();
partiallywritten = 0; partiallywritten = 0;
return 0; return 0;