summaryrefslogtreecommitdiff
path: root/src/bin/jvii.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/jvii.rs')
-rw-r--r--src/bin/jvii.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/bin/jvii.rs b/src/bin/jvii.rs
index 83d6162..168acac 100644
--- a/src/bin/jvii.rs
+++ b/src/bin/jvii.rs
@@ -2,13 +2,13 @@ use std::env;
use std::fs;
use std::io::{self, Write};
use std::path::PathBuf;
-use std::time::{Duration, Instant};
+use std::time::Duration;
use clap::{Parser, command};
use crossterm::{
QueueableCommand,
cursor::MoveTo,
- event::{self, Event, KeyCode, KeyEvent, KeyEventKind, KeyModifiers},
+ event::{self, Event, KeyCode, KeyEvent, KeyModifiers},
execute,
style::{self, Color, Print, SetForegroundColor},
terminal::{
@@ -470,11 +470,6 @@ impl Editor {
false
}
- #[cfg(not(windows))]
- fn is_duplicate_event(&mut self, _key_event: &KeyEvent) -> bool {
- false
- }
-
#[cfg(windows)]
fn should_skip_ime_event(&mut self, key_event: &KeyEvent) -> bool {
// Check for IME composition markers
@@ -513,11 +508,6 @@ impl Editor {
}
}
- #[cfg(not(windows))]
- fn should_skip_ime_event(&mut self, _key_event: &KeyEvent) -> bool {
- false
- }
-
fn handle_key_event(&mut self, key_event: KeyEvent, stdout: &mut io::Stdout) -> io::Result<()> {
match key_event.code {
KeyCode::Char('s') if key_event.modifiers.contains(KeyModifiers::CONTROL) => {