mirror of https://github.com/adamdruppe/arsd.git
fix ctrl+d bug in getline keeping the buffer
This commit is contained in:
parent
0b34c82758
commit
2c5255b486
|
|
@ -5951,7 +5951,8 @@ class LineGetter {
|
||||||
goto default;
|
goto default;
|
||||||
if(line.length == 0)
|
if(line.length == 0)
|
||||||
eof = true;
|
eof = true;
|
||||||
goto case;
|
justHitTab = justKilled = false;
|
||||||
|
return false; // indicate end of line so it doesn't maintain the buffer thinking it was ctrl+enter
|
||||||
case '\r':
|
case '\r':
|
||||||
case '\n':
|
case '\n':
|
||||||
justHitTab = justKilled = false;
|
justHitTab = justKilled = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue