Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Deezzir committed Feb 7, 2023
1 parent 686663f commit ee3bc22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ edition = "2021"
regex = "1.3.9"
chrono = "0.4.23"
ncurses = { version = "5.101.0", features = ["wide"] }
ctrlc = "3.2.5"
ctrlc = { version = "3.2.5", features = ["termination"] }
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ fn main() {
Mode::Normal => {
app.clear_message();
match char::from_u32(key as u32).unwrap() {
'k' | '\u{103}' => app.go_up(),
'j' | '\u{102}' => app.go_down(),
'k' | '\u{103}' => app.go_up(), // 'k' or 'up'
'j' | '\u{102}' => app.go_down(), // 'j' or 'down'
'g' => app.go_top(),
'G' => app.go_bottom(),
'K' => app.drag_up(),
Expand Down Expand Up @@ -228,8 +228,8 @@ fn main() {
}
Mode::Edit => {
match key as u8 as char {
'\n' => {
//'\u{1b}'
'\n' | '\u{1b}' => {
// Enter or Esc
mode = if app.finish_edit() {
editing_cursor = 0;
Mode::Normal
Expand Down

0 comments on commit ee3bc22

Please sign in to comment.