Skip to content

Commit

Permalink
Merge pull request #44 from matheuswhite/43-exclamation-mark-bug
Browse files Browse the repository at this point in the history
Fix exclamation mark bug
  • Loading branch information
matheuswhite authored Feb 22, 2024
2 parents dc9019c + 004262c commit b290f52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/command_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,14 @@ impl<B: Backend + Send + Sync + 'static> CommandBar<B> {
.split_whitespace()
.map(|arg| arg.to_string())
.collect::<Vec<_>>();
if command_line_split.is_empty() {
let interface = self.interface.lock().unwrap();
interface.send(UserTxData::Data {
content: command_line,
});
return Ok(());
}

let name = command_line_split[0].to_lowercase();

match name.as_str() {
Expand Down

0 comments on commit b290f52

Please sign in to comment.