mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-05 15:40:31 +00:00
Shell: Handle the "delete" key correctly
We were deleting the wrong character in the line buffer, oopsie!
This commit is contained in:
parent
ecdd9a5bc6
commit
2695773dd2
|
@ -304,7 +304,7 @@ String LineEditor::get_line(const String& prompt)
|
|||
fflush(stdout);
|
||||
return;
|
||||
}
|
||||
m_buffer.remove(m_cursor - 1);
|
||||
m_buffer.remove(m_cursor);
|
||||
fputs("\033[3~", stdout);
|
||||
fflush(stdout);
|
||||
vt_save_cursor();
|
||||
|
|
Loading…
Reference in a new issue