kernel: Only allow Ctrl+D on an empty line
This commit is contained in:
parent
099f6131d1
commit
24f4ce9669
@ -59,7 +59,7 @@ void ConsoleDevice::did_press_key(char key)
|
||||
// Ctrl+D
|
||||
if (key == 'd' && (Keyboard::modifiers() & Keyboard::LeftControl))
|
||||
{
|
||||
g_eof = true;
|
||||
if (g_temp_input.size() == 0) g_eof = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user