mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:47:59 +01:00
Fix a thing
This commit is contained in:
@@ -1641,8 +1641,8 @@ function Marks() //{{{
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a named for the current buffer, at its current position. If
|
* Add a named mark for the current buffer, at its current position.
|
||||||
* mark matches [A-Z], it's considered a URL mark, and will jump to
|
* If mark matches [A-Z], it's considered a URL mark, and will jump to
|
||||||
* the same position at the same URL no matter what buffer it's
|
* the same position at the same URL no matter what buffer it's
|
||||||
* selected from. If it matches [a-z'"], it's a local mark, and can
|
* selected from. If it matches [a-z'"], it's a local mark, and can
|
||||||
* only be recalled from a buffer with a matching URL.
|
* only be recalled from a buffer with a matching URL.
|
||||||
|
|||||||
@@ -267,7 +267,6 @@ function CommandLine() //{{{
|
|||||||
substring = substring.substr(value.length);
|
substring = substring.substr(value.length);
|
||||||
this.removeSubstring = substring;
|
this.removeSubstring = substring;
|
||||||
|
|
||||||
// highlight="Preview" won't work in the editor.
|
|
||||||
let node = util.xmlToDom(<span highlight="Preview">{substring}</span>,
|
let node = util.xmlToDom(<span highlight="Preview">{substring}</span>,
|
||||||
document);
|
document);
|
||||||
let start = this.caret;
|
let start = this.caret;
|
||||||
@@ -1074,8 +1073,6 @@ function CommandLine() //{{{
|
|||||||
}
|
}
|
||||||
else if (event.type == "input")
|
else if (event.type == "input")
|
||||||
{
|
{
|
||||||
if (completions)
|
|
||||||
completions.previewClear();
|
|
||||||
this.resetCompletions();
|
this.resetCompletions();
|
||||||
liberator.triggerCallback("change", currentExtendedMode, command);
|
liberator.triggerCallback("change", currentExtendedMode, command);
|
||||||
}
|
}
|
||||||
@@ -1434,7 +1431,10 @@ function CommandLine() //{{{
|
|||||||
{
|
{
|
||||||
autocompleteTimer.reset();
|
autocompleteTimer.reset();
|
||||||
if (completions)
|
if (completions)
|
||||||
completions.reset();
|
{
|
||||||
|
completions.wildIndex = -1;
|
||||||
|
completions.previewClear();
|
||||||
|
}
|
||||||
if (history)
|
if (history)
|
||||||
history.reset();
|
history.reset();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user