Fixed space key

pull/8/head
Mark 2023-09-22 10:46:01 -07:00
parent c2d3e613d4
commit a1db2b6bb0
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ cfg_if::cfg_if! {
match c { match c {
'a'..='z' | 'A'..='Z' | '0'..='9' 'a'..='z' | 'A'..='Z' | '0'..='9'
|'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'('|')' |'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'('|')'
|'?'|'~'|','|'.'|'['|']' |'?'|'~'|','|'.'|'['|']'|' '
|'<'|'>'|'/'|'_'|'-'|':'|'|'|'='|'+'|';' |'<'|'>'|'/'|'_'|'-'|':'|'|'|'='|'+'|';'
=> { unsafe { (*state).promptbuffer.add_char(c); } }, => { unsafe { (*state).promptbuffer.add_char(c); } },

View File

@ -120,7 +120,7 @@ pub fn main() -> Result<(), std::io::Error> {
// Only process sane characters // Only process sane characters
'a'..='z' | 'A'..='Z' | '0'..='9' 'a'..='z' | 'A'..='Z' | '0'..='9'
|'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'('|')' |'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'('|')'
|'?'|'~'|','|'.'|'['|']' |'?'|'~'|','|'.'|'['|']'|' '
|'<'|'>'|'/'|'_'|'-'|':'|'|'|'='|'+'|';' |'<'|'>'|'/'|'_'|'-'|':'|'|'|'='|'+'|';'
=> { pb.add_char(*q); }, => { pb.add_char(*q); },