mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue