Skip to content

Commit aecd13d

Browse files
committed
Tab complete the same case
1 parent 1c57c00 commit aecd13d

File tree

1 file changed

+9
-1
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+9
-1
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,15 @@ def cmd_set_tabs(str, words)
20352035

20362036
unless str.blank?
20372037
res = res.select { |term| term.upcase.start_with?(str.upcase) }
2038-
res = res.map { |term| str + term[str.length..-1] }
2038+
res = res.map { |term|
2039+
if str == str.upcase
2040+
str + term[str.length..-1].upcase
2041+
elsif str == str.downcase
2042+
str + term[str.length..-1].downcase
2043+
else
2044+
str + term[str.length..-1]
2045+
end
2046+
}
20392047
end
20402048

20412049
return res

0 commit comments

Comments
 (0)