From a1db2b6bb03312649653475831b42afe35bac837 Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 22 Sep 2023 10:46:01 -0700 Subject: [PATCH] Fixed space key --- src/lib.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6917f51..e8d4f7d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -95,7 +95,7 @@ cfg_if::cfg_if! { match c { 'a'..='z' | 'A'..='Z' | '0'..='9' |'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'('|')' - |'?'|'~'|','|'.'|'['|']' + |'?'|'~'|','|'.'|'['|']'|' ' |'<'|'>'|'/'|'_'|'-'|':'|'|'|'='|'+'|';' => { unsafe { (*state).promptbuffer.add_char(c); } }, diff --git a/src/main.rs b/src/main.rs index 94903de..5eb4fbd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,7 +120,7 @@ pub fn main() -> Result<(), std::io::Error> { // Only process sane characters 'a'..='z' | 'A'..='Z' | '0'..='9' |'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'('|')' - |'?'|'~'|','|'.'|'['|']' + |'?'|'~'|','|'.'|'['|']'|' ' |'<'|'>'|'/'|'_'|'-'|':'|'|'|'='|'+'|';' => { pb.add_char(*q); },