mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
Clean up prints
This commit is contained in:
parent
98651c4b86
commit
1935208de6
4 changed files with 3 additions and 6 deletions
|
@ -191,7 +191,6 @@ impl TerminalConnection {
|
|||
let guard = self.term.lock();
|
||||
let mode = guard.mode();
|
||||
let esc = to_esc_str(keystroke, mode);
|
||||
dbg!(&esc);
|
||||
drop(guard);
|
||||
if esc.is_some() {
|
||||
self.write_to_pty(esc.unwrap());
|
||||
|
|
|
@ -219,7 +219,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode) -> Option<String> {
|
|||
|
||||
// Fallback to keystroke input sent directly
|
||||
if keystroke.key.chars().count() == 1 {
|
||||
dbg!("This should catch space", &keystroke.key);
|
||||
//TODO this might fail on unicode during internationalization
|
||||
return Some(keystroke.key.clone());
|
||||
} else {
|
||||
None
|
||||
|
|
|
@ -219,7 +219,6 @@ impl Terminal {
|
|||
|
||||
///Synthesize the keyboard event corresponding to 'enter'
|
||||
fn enter(&mut self, _: &Enter, cx: &mut ViewContext<Self>) {
|
||||
dbg!("Here!");
|
||||
self.connection.update(cx, |connection, _| {
|
||||
connection.try_keystroke(&Keystroke::parse("enter").unwrap());
|
||||
});
|
||||
|
|
|
@ -384,9 +384,8 @@ impl Element for TerminalEl {
|
|||
self.connection
|
||||
.upgrade(cx.app)
|
||||
.map(|connection| {
|
||||
connection.update(cx.app, |connection, _| {
|
||||
connection.try_keystroke(dbg!(keystroke))
|
||||
})
|
||||
connection
|
||||
.update(cx.app, |connection, _| connection.try_keystroke(keystroke))
|
||||
})
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue