mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-29 05:33:49 +00:00
remove printline
This commit is contained in:
parent
2cf48c03f9
commit
e61a38b3a9
1 changed files with 0 additions and 3 deletions
|
@ -84,17 +84,14 @@ pub fn init(cx: &mut MutableAppContext) {
|
|||
// Any keystrokes not mapped to vim should clear the active operator
|
||||
pub fn observe_keypresses(window_id: usize, cx: &mut MutableAppContext) {
|
||||
cx.observe_keystrokes(window_id, |_keystroke, _result, handled_by, cx| {
|
||||
dbg!(_keystroke);
|
||||
if let Some(handled_by) = handled_by {
|
||||
if handled_by.namespace() == "vim" {
|
||||
println!("Vim action. Don't clear");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Vim::update(cx, |vim, cx| {
|
||||
if vim.active_operator().is_some() {
|
||||
println!("Clearing operator");
|
||||
vim.clear_operator(cx);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue