Revision 1bada791
Added by Marc Dequènes over 13 years ago
- ID 1bada7912609af9fc0e4769a1f1229b75692f842
lib/cyborghood-messenger/terminal_cli.rb | ||
---|---|---|
# remove empty lines, comments, or dups from history
|
||
if line =~ /^\s*(#.*)?$/ or Readline::HISTORY.to_a[-2] == line
|
||
Readline::HISTORY.pop
|
||
next
|
||
end
|
||
|
||
begin
|
Also available in: Unified diff
[fix] Messenger: allow repeating same commands