mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +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);
|
fflush(stdout);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_buffer.remove(m_cursor - 1);
|
m_buffer.remove(m_cursor);
|
||||||
fputs("\033[3~", stdout);
|
fputs("\033[3~", stdout);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
vt_save_cursor();
|
vt_save_cursor();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue