mirror of https://github.com/garabik/grc.git
Compare commits
4 Commits
3a8299533e
...
a1fec111a1
Author | SHA1 | Date |
---|---|---|
Jacob Menashe | a1fec111a1 | |
Radovan Garabík | 572618395c | |
scratchyone | c7fc72d248 | |
Jake Menashe | a5ef099539 |
2
grc.fish
2
grc.fish
|
@ -19,7 +19,7 @@ for executable in $grc_plugin_execs
|
|||
if isatty 1
|
||||
grc $executable $argv
|
||||
else
|
||||
eval command $executable $argv
|
||||
eval command $executable "$argv"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
7
grcat
7
grcat
|
@ -101,11 +101,8 @@ for c in range(0, 256):
|
|||
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||
|
||||
def add2list(clist, m, patterncolour):
|
||||
for group in range(0, len(m.groups()) +1):
|
||||
if group < len(patterncolour):
|
||||
clist.append((m.start(group), m.end(group), patterncolour[group]))
|
||||
else:
|
||||
clist.append((m.start(group), m.end(group), patterncolour[0]))
|
||||
for group in range(len(m.groups())):
|
||||
clist.append((m.start(group+1), m.end(group+1), patterncolour[group]))
|
||||
|
||||
def get_colour(x):
|
||||
if x in colours:
|
||||
|
|
Loading…
Reference in New Issue