diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-07 05:29:07 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-07 05:29:07 +0200 |
commit | 67108f872f59f28a3e4c5c2b5c0fc204674e1684 (patch) | |
tree | 9e65600774e8fe2a667c875602fab6b5c053834a /Shell/LineEditor.h | |
parent | b04f08ba483c800ea28afba3bc1d33a2542bbbbb (diff) | |
download | serenity-67108f872f59f28a3e4c5c2b5c0fc204674e1684.zip |
Shell: Make ^W and ^U work when cursor is not at the end of the line.
Diffstat (limited to 'Shell/LineEditor.h')
-rw-r--r-- | Shell/LineEditor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Shell/LineEditor.h b/Shell/LineEditor.h index 60d0e643b0..da01c435af 100644 --- a/Shell/LineEditor.h +++ b/Shell/LineEditor.h @@ -16,6 +16,9 @@ public: private: void clear_line(); void append(const String&); + void vt_save_cursor(); + void vt_restore_cursor(); + void vt_clear_to_end_of_line(); Vector<char, 1024> m_buffer; int m_cursor { 0 }; |