diff --git a/kernel/src/fs/devices/ConsoleDevice.cpp b/kernel/src/fs/devices/ConsoleDevice.cpp index c37143e9..dda6d021 100644 --- a/kernel/src/fs/devices/ConsoleDevice.cpp +++ b/kernel/src/fs/devices/ConsoleDevice.cpp @@ -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; }