1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:42:27 +01:00

Dont quote literal option args. Fix more/less completion arrows.

This commit is contained in:
Kris Maglione
2008-11-26 22:47:53 +00:00
parent 7fad219028
commit 424909162d
3 changed files with 5 additions and 4 deletions

View File

@@ -609,6 +609,7 @@ function Commands() //{{{
{ {
args.literalArg = sub; args.literalArg = sub;
args.push(sub); args.push(sub);
args.quote = null;
if (complete) if (complete)
args.completeArg = args.length - 1; args.completeArg = args.length - 1;
break; break;

View File

@@ -39,7 +39,7 @@ function Highlights(name, store, serial)
CompDesc color: gray; width: 50%; CompDesc color: gray; width: 50%;
CompLess text-align: center; height: .5ex; line-height: .5ex; CompLess text-align: center; height: .5ex; line-height: .5ex;
CompLess:after content: "\2303" /* Unicode up arrowhead */ CompLess:after content: "\2303" /* Unicode up arrowhead */
CompMore text-align: center; height: .5ex; line-height: .5ex; padding-bottom: 1ex; CompMore text-align: center; height: .5ex; line-height: .5ex;
CompMore:after content: "\2304" /* Unicode down arrowhead */ CompMore:after content: "\2304" /* Unicode down arrowhead */
Indicator color: blue; Indicator color: blue;

View File

@@ -1382,11 +1382,11 @@ function ItemList(id) //{{{
d.appendChild(row); d.appendChild(row);
dom.replaceChild(d, nodes.items); dom.replaceChild(d, nodes.items);
nodes.items = d; nodes.items = d;
nodes.up.style.display = (start == 0) && "none"; nodes.up.style.display = (start == 0) ? "none" : "block";
nodes.down.style.display = (end == context.items.length) && "none"; nodes.down.style.display = (end == context.items.length) ? "none" : "block";
}); });
divNodes.noCompletions.style.display = (off > 0) && "none"; divNodes.noCompletions.style.display = (off > 0) ? "none" : "block";
completionElements = div.getElementsByClassName("hl-CompItem"); completionElements = div.getElementsByClassName("hl-CompItem");