Add Ctrl+c binding for exiting hint mode

This commit is contained in:
absorber 2021-05-08 03:12:34 +00:00 committed by GitHub
parent 7f6b7acfeb
commit f9d83a2836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,8 @@ impl HintState {
'\x08' | '\x1f' => {
self.keys.pop();
},
// Cancel hint highlighting on ESC.
'\x1b' => self.stop(),
// Cancel hint highlighting on ESC/Ctrl+c.
'\x1b' | '\x03' => self.stop(),
_ => (),
}