mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 04:47:58 +01:00
Fix completion preview error in 3.6a2
--HG-- extra : rebase_source : 33da194d4dc35758f42183b0969132289d9594cc
This commit is contained in:
@@ -360,7 +360,16 @@ function CommandLine() //{{{
|
||||
{
|
||||
let node = this.editor.rootElement.firstChild;
|
||||
if (node && node.nextSibling)
|
||||
this.editor.deleteNode(node.nextSibling);
|
||||
{
|
||||
try
|
||||
{
|
||||
this.editor.deleteNode(node.nextSibling);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
node.nextSibling.textContent = "";
|
||||
}
|
||||
}
|
||||
else if (this.removeSubstring)
|
||||
{
|
||||
let str = this.removeSubstring;
|
||||
|
||||
Reference in New Issue
Block a user