mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 03:15:45 +01:00
hopefully made the MOW hack better, so that it doesn't show during startup
fixed wildoptions=sort
This commit is contained in:
@@ -234,7 +234,7 @@ function Mappings() //{{{
|
||||
// TODO: move default maps to their own v.normal namespace
|
||||
this.getDefaultMap = function(mode, cmd)
|
||||
{
|
||||
return getMap(mode, cmd, main);
|
||||
return getMap(mode, cmd, main);
|
||||
}
|
||||
|
||||
// returns an array of mappings with names which start with "cmd"
|
||||
|
||||
@@ -66,8 +66,11 @@ function CommandLine() //{{{
|
||||
multiline_output_widget.contentDocument.body.setAttribute("style", "margin: 0px; font-family: -moz-fixed;"); // get rid of the default border
|
||||
multiline_output_widget.contentDocument.body.innerHTML = "";
|
||||
// we need this hack, or otherwise the first use of setMultiline() will have a wrong height
|
||||
multiline_output_widget.collapsed = false;
|
||||
setTimeout(function() { multiline_output_widget.collapsed = true; }, 0);
|
||||
setTimeout(function() {
|
||||
multiline_output_widget.collapsed = false;
|
||||
var content_height = multiline_output_widget.contentDocument.height;
|
||||
multiline_output_widget.collapsed = true;
|
||||
}, 100);
|
||||
|
||||
// The widget used for multiline intput
|
||||
var multiline_input_widget = document.getElementById("vimperator-multiline-input");
|
||||
@@ -149,7 +152,8 @@ function CommandLine() //{{{
|
||||
// vimperator.log(content_height);
|
||||
var height = content_height < available_height ? content_height : available_height;
|
||||
|
||||
multiline_output_widget.style.height = height + "px";
|
||||
//multiline_output_widget.style.height = height + "px";
|
||||
multiline_output_widget.height = height + "px";
|
||||
multiline_output_widget.collapsed = false;
|
||||
setTimeout(function() {
|
||||
multiline_output_widget.focus();
|
||||
@@ -414,7 +418,7 @@ function CommandLine() //{{{
|
||||
[completion_start_index, completions] = res;
|
||||
|
||||
// Sort the completion list
|
||||
if (vimperator.options["wildoptions"].search(/\bsort\b/))
|
||||
if (vimperator.options["wildoptions"].search(/\bsort\b/) > -1)
|
||||
{
|
||||
completions.sort(function(a, b) {
|
||||
if (a[0] < b[0])
|
||||
|
||||
@@ -101,7 +101,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
||||
onblur="vimperator.commandline.onEvent(event);"/>
|
||||
</hbox>
|
||||
|
||||
<iframe id="vimperator-multiline-output" src="about:blank" flex="1" hidden="false" collapsed="true"
|
||||
<iframe id="vimperator-multiline-output" src="about:blank" flex="1" height="10px" hidden="false" collapsed="true"
|
||||
onkeypress="vimperator.commandline.onMultilineOutputEvent(event)"/>
|
||||
|
||||
<textbox id="vimperator-multiline-input" class="plain" flex="1" rows="10" hidden="false" collapsed="true" multiline="true"
|
||||
|
||||
Reference in New Issue
Block a user