mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
fmt/clean
This commit is contained in:
parent
1cdbeab110
commit
e3a2403d07
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,7 @@ use std::io::{stdin, BufRead, BufReader};
|
|||
|
||||
#[cfg(feature = "full-repl")]
|
||||
use crossterm::{
|
||||
cursor::{MoveToColumn},
|
||||
cursor::MoveToColumn,
|
||||
event::{read, Event, KeyCode, KeyEvent, KeyModifiers},
|
||||
execute,
|
||||
style::Print,
|
||||
|
@ -123,7 +123,8 @@ impl StdinReader {
|
|||
{
|
||||
consult_history = false;
|
||||
match (code, modifiers) {
|
||||
(KeyCode::Char('z'), KeyModifiers::CONTROL) | (KeyCode::Char('d'), KeyModifiers::CONTROL) => {
|
||||
(KeyCode::Char('z'), KeyModifiers::CONTROL)
|
||||
| (KeyCode::Char('d'), KeyModifiers::CONTROL) => {
|
||||
println!();
|
||||
line.clear();
|
||||
line.push_str(":exit");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue