gchp / iota

A terminal-based text editor written in Rust
MIT License
1.64k stars 81 forks source link

Fixes '0' keybinding in vi mode #145

Closed MahmoudDolah closed 6 years ago

MahmoudDolah commented 6 years ago

Previously, would do nothing when pressed Now it correctly jumps to the beginning of a line Before: https://asciinema.org/a/FBy1biFw5BlWiWp2XjiWPSJnS After: https://asciinema.org/a/IkO76bNeNKVsfWhfboAchjGi5

Previously, also outputted this to the console on keyboard press of 0

mahmoud@megatron:~/Documents/git-repos/iota(master○) » ./target/release/iota src/iota/modes/normal.rs --vi
thread 'main' panicked at 'Unknown command: q', src/iota/editor.rs:129:21
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End Unhandled line anchor: End %  
gchp commented 6 years ago

thanks!