diff options
Diffstat (limited to 'ui/src/components/utilities.rs')
-rw-r--r-- | ui/src/components/utilities.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/src/components/utilities.rs b/ui/src/components/utilities.rs index ce56a4a6..6837d5f5 100644 --- a/ui/src/components/utilities.rs +++ b/ui/src/components/utilities.rs @@ -899,12 +899,10 @@ impl Component for StatusBar { if parse_command(&self.ex_buffer.as_str().as_bytes()) .to_full_result() .is_ok() - { - if self.cmd_history.last().map(String::as_str) + && self.cmd_history.last().map(String::as_str) != Some(self.ex_buffer.as_str()) - { - self.cmd_history.push(self.ex_buffer.as_str().to_string()); - } + { + self.cmd_history.push(self.ex_buffer.as_str().to_string()); } self.ex_buffer.clear(); } |