kernel: Only allow Ctrl+D on an empty line

This commit is contained in:
apio 2023-04-26 20:42:26 +02:00
parent 099f6131d1
commit 24f4ce9669
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -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;
}