mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 12:51:10 +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")]
|
#[cfg(feature = "full-repl")]
|
||||||
use crossterm::{
|
use crossterm::{
|
||||||
cursor::{MoveToColumn},
|
cursor::MoveToColumn,
|
||||||
event::{read, Event, KeyCode, KeyEvent, KeyModifiers},
|
event::{read, Event, KeyCode, KeyEvent, KeyModifiers},
|
||||||
execute,
|
execute,
|
||||||
style::Print,
|
style::Print,
|
||||||
|
@ -123,7 +123,8 @@ impl StdinReader {
|
||||||
{
|
{
|
||||||
consult_history = false;
|
consult_history = false;
|
||||||
match (code, modifiers) {
|
match (code, modifiers) {
|
||||||
(KeyCode::Char('z'), KeyModifiers::CONTROL) | (KeyCode::Char('d'), KeyModifiers::CONTROL) => {
|
(KeyCode::Char('z'), KeyModifiers::CONTROL)
|
||||||
|
| (KeyCode::Char('d'), KeyModifiers::CONTROL) => {
|
||||||
println!();
|
println!();
|
||||||
line.clear();
|
line.clear();
|
||||||
line.push_str(":exit");
|
line.push_str(":exit");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue