yaft: improve newline detection

This commit is contained in:
Stefan Seyfried
2018-01-27 18:31:46 +01:00
committed by Thilo Graf
parent 8adead92e1
commit dbf83a85f2
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,6 @@ void YaFT_p::tab(void)
void YaFT_p::nl(void)
{
nlseen = true;
txt.push("");
lines_available++;
move_cursor(1, 0);

View File

@@ -510,7 +510,8 @@ void YaFT_p::control_character(uint8_t ch)
switch(ch) {
case BS: bs(); break;
case HT: tab(); break;
case LF: nl(); break;
case LF: nlseen = true;
nl(); break;
case VT: nl(); break;
case FF: nl(); break;
case CR: cr(); break;