1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-09 09:35:45 +01:00

Replace tabs.localStore.focusedFrame with buffer.focusedFrame.

This commit is contained in:
Kris Maglione
2010-10-03 14:13:24 -04:00
parent 72b6af3e6b
commit c577b15ea6
5 changed files with 15 additions and 9 deletions

View File

@@ -427,7 +427,7 @@ const Editor = Module("editor", {
let sel = controller.getSelection(controller.SELECTION_NORMAL);
if (!sel.rangeCount) // Hack.
sel.addRange(RangeFind.endpoint(
RangeFind.nodeRange(tabs.localStore.focusedFrame.document.documentElement),
RangeFind.nodeRange(buffer.focusedFrame.document.documentElement),
true));
while (count--)
controller[caretModeMethod](caretModeArg, false);