Correct regex syntax. Also some whitespace fix.
parent
ab7de3a17c
commit
b96beb0680
|
@ -940,7 +940,7 @@ class Core
|
||||||
|
|
||||||
# Parse any extra options that should be passed to the plugin
|
# Parse any extra options that should be passed to the plugin
|
||||||
args.each { |opt|
|
args.each { |opt|
|
||||||
k, v = opt.split(/=/)
|
k, v = opt.split(/\=/)
|
||||||
|
|
||||||
opts[k] = v if (k and v)
|
opts[k] = v if (k and v)
|
||||||
}
|
}
|
||||||
|
@ -973,8 +973,9 @@ class Core
|
||||||
# Tab completion for the load command
|
# Tab completion for the load command
|
||||||
#
|
#
|
||||||
def cmd_load_tabs(str, words)
|
def cmd_load_tabs(str, words)
|
||||||
tabs = []
|
tabs = []
|
||||||
if (not words[1] or not words[1].match(/^\//))
|
|
||||||
|
if (not words[1] or not words[1].match(/^\//))
|
||||||
# then let's start tab completion in the scripts/resource directories
|
# then let's start tab completion in the scripts/resource directories
|
||||||
begin
|
begin
|
||||||
[
|
[
|
||||||
|
@ -992,7 +993,7 @@ class Core
|
||||||
else
|
else
|
||||||
tabs += tab_complete_filenames(str,words)
|
tabs += tab_complete_filenames(str,words)
|
||||||
end
|
end
|
||||||
return tabs.map{|e| e.sub(/.rb/, '')}
|
return tabs.map{|e| e.sub(/.rb/, '')}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue