1
0
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:
Kris Maglione
2009-10-24 05:49:45 -04:00
parent 3651a0a403
commit 2add32c3f2
3 changed files with 35 additions and 13 deletions

View File

@@ -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;