mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-16 01:15:04 +01:00
misc improvements
This commit is contained in:
parent
ca4213ba81
commit
26cdcd0524
7 changed files with 39 additions and 31 deletions
|
|
@ -43,7 +43,7 @@ impl InteractiveShell {
|
|||
127 => {
|
||||
// Backspace, space, backspace.
|
||||
// We literally erase it.
|
||||
if self.line_buf.len() > 0 {
|
||||
if !self.line_buf.is_empty() {
|
||||
self.write(&[8, 32, 8]);
|
||||
self.line_buf.truncate(self.line_buf.len() - 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue