mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:27:58 +01:00
Fix /find bugs
This commit is contained in:
@@ -381,7 +381,7 @@ function Search() //{{{
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
liberator.echo((up ? "?" : "/") + lastSearchPattern, null, commandline.FORCE_SINGLELINE);
|
commandline.echo((up ? "?" : "/") + lastSearchPattern, null, commandline.FORCE_SINGLELINE);
|
||||||
|
|
||||||
if (options["hlsearch"])
|
if (options["hlsearch"])
|
||||||
this.highlight(lastSearchString);
|
this.highlight(lastSearchString);
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ const modes = (function () //{{{
|
|||||||
var main = 1; // NORMAL
|
var main = 1; // NORMAL
|
||||||
var extended = 0; // NONE
|
var extended = 0; // NONE
|
||||||
|
|
||||||
|
var lastShown = null;
|
||||||
|
|
||||||
var passNextKey = false;
|
var passNextKey = false;
|
||||||
var passAllKeys = false;
|
var passAllKeys = false;
|
||||||
var isRecording = false;
|
var isRecording = false;
|
||||||
@@ -218,6 +220,7 @@ const modes = (function () //{{{
|
|||||||
reset: function (silent)
|
reset: function (silent)
|
||||||
{
|
{
|
||||||
modeStack = [];
|
modeStack = [];
|
||||||
|
liberator.dump("reset");
|
||||||
if (config.isComposeWindow)
|
if (config.isComposeWindow)
|
||||||
this.set(modes.COMPOSE, modes.NONE, silent);
|
this.set(modes.COMPOSE, modes.NONE, silent);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -882,6 +882,8 @@ function CommandLine() //{{{
|
|||||||
},
|
},
|
||||||
set command(cmd) commandWidget.value = cmd,
|
set command(cmd) commandWidget.value = cmd,
|
||||||
|
|
||||||
|
get message() messageBox.value,
|
||||||
|
|
||||||
open: function open(prompt, cmd, extendedMode)
|
open: function open(prompt, cmd, extendedMode)
|
||||||
{
|
{
|
||||||
// save the current prompts, we need it later if the command widget
|
// save the current prompts, we need it later if the command widget
|
||||||
@@ -1070,8 +1072,8 @@ function CommandLine() //{{{
|
|||||||
if (events.isAcceptKey(key))
|
if (events.isAcceptKey(key))
|
||||||
{
|
{
|
||||||
let mode = currentExtendedMode; // save it here, as modes.pop() resets it
|
let mode = currentExtendedMode; // save it here, as modes.pop() resets it
|
||||||
keepCommand = (mode == modes.EX); // Fixme.
|
keepCommand = true;
|
||||||
currentExtendedMode = null; /* Don't let modes.pop trigger "cancel" */
|
currentExtendedMode = null; // Don't let modes.pop trigger "cancel"
|
||||||
modes.pop(!this.silent);
|
modes.pop(!this.silent);
|
||||||
|
|
||||||
return liberator.triggerCallback("submit", mode, command);
|
return liberator.triggerCallback("submit", mode, command);
|
||||||
|
|||||||
Reference in New Issue
Block a user