File tree 1 file changed +6
-1
lines changed
crates/atuin/src/command/client/search
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,10 @@ impl State {
206
206
let esc_allow_exit = !( self . tab_index == 0 && self . keymap_mode == KeymapMode :: VimInsert ) ;
207
207
208
208
// support ctrl-a prefix, like screen or tmux
209
- if ctrl && input. code == KeyCode :: Char ( settings. keys . prefix . chars ( ) . next ( ) . unwrap_or ( 'a' ) ) {
209
+ if !self . prefix
210
+ && ctrl
211
+ && input. code == KeyCode :: Char ( settings. keys . prefix . chars ( ) . next ( ) . unwrap_or ( 'a' ) )
212
+ {
210
213
self . prefix = true ;
211
214
return InputAction :: Continue ;
212
215
}
@@ -301,6 +304,8 @@ impl State {
301
304
}
302
305
KeyCode :: Char ( 'a' ) => {
303
306
self . search . input . start ( ) ;
307
+ // This prevents pressing ctrl-a twice while still in prefix mode
308
+ self . prefix = false ;
304
309
return InputAction :: Continue ;
305
310
}
306
311
_ => { }
You can’t perform that action at this time.
0 commit comments