mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
fixed :js <<EOF
This commit is contained in:
@@ -1185,7 +1185,6 @@ vimperator.Events = function () //{{{
|
|||||||
map = vimperator.mappings.get(vimperator.mode, candidateCommand);
|
map = vimperator.mappings.get(vimperator.mode, candidateCommand);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// counts must be at the start of a complete mapping (10j -> go 10 lines down)
|
// counts must be at the start of a complete mapping (10j -> go 10 lines down)
|
||||||
if (/^[1-9][0-9]*$/.test(vimperator.input.buffer + key))
|
if (/^[1-9][0-9]*$/.test(vimperator.input.buffer + key))
|
||||||
{
|
{
|
||||||
@@ -1288,7 +1287,10 @@ vimperator.Events = function () //{{{
|
|||||||
stop = false;
|
stop = false;
|
||||||
|
|
||||||
if (vimperator.mode == vimperator.modes.COMMAND_LINE)
|
if (vimperator.mode == vimperator.modes.COMMAND_LINE)
|
||||||
vimperator.commandline.onEvent(event); // reroute event in command line mode
|
{
|
||||||
|
if (!(vimperator.modes.extended & vimperator.modes.INPUT_MULTILINE))
|
||||||
|
vimperator.commandline.onEvent(event); // reroute event in command line mode
|
||||||
|
}
|
||||||
else if (vimperator.mode != vimperator.modes.INSERT)
|
else if (vimperator.mode != vimperator.modes.INSERT)
|
||||||
vimperator.beep();
|
vimperator.beep();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -727,6 +727,7 @@ vimperator.CommandLine = function () //{{{
|
|||||||
if (event.type == "keypress")
|
if (event.type == "keypress")
|
||||||
{
|
{
|
||||||
var key = vimperator.events.toString(event);
|
var key = vimperator.events.toString(event);
|
||||||
|
vimperator.log(multilineInputWidget.value);
|
||||||
if (vimperator.events.isAcceptKey(key))
|
if (vimperator.events.isAcceptKey(key))
|
||||||
{
|
{
|
||||||
var text = multilineInputWidget.value.substr(0, multilineInputWidget.selectionStart);
|
var text = multilineInputWidget.value.substr(0, multilineInputWidget.selectionStart);
|
||||||
@@ -753,6 +754,7 @@ vimperator.CommandLine = function () //{{{
|
|||||||
{
|
{
|
||||||
autosizeMultilineInputWidget();
|
autosizeMultilineInputWidget();
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
// FIXME: if 'more' is set and the MOW is not scrollable we should still
|
// FIXME: if 'more' is set and the MOW is not scrollable we should still
|
||||||
|
|||||||
Reference in New Issue
Block a user