@@ -774,15 +774,15 @@ impl EditorView {
774774 }
775775
776776 fn command_mode(&mut self, mode: Mode, cxt: &mut commands::Context, event: KeyEvent) {
777− match event {
777+ match (event, cxt.editor.count) {
778778 // count handling
779− key!(i @ '0'..='9') => {
779+ (key!(i @ '0'), Some(_)) | (key!(i @ '1'..='9'), _) => {
780780 let i = i.to_digit(10).unwrap() as usize;
781781 cxt.editor.count =
782782 std::num::NonZeroUsize::new(cxt.editor.count.map_or(i, |c| c.get() * 10 + i));
783783 }
784784 // special handling for repeat operator
785− key!('.') if self.keymaps.pending().is_empty() => {
785+ (key!('.'), _) if self.keymaps.pending().is_empty() => {
786786 // first execute whatever put us into insert mode
787787 self.last_insert.0.execute(cxt);
788788 // then replay the inputs