1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 19:32:26 +01:00

Make <C-f>/<C-b> in caret mode not behave completely insanely.

This commit is contained in:
Kris Maglione
2011-10-03 22:23:33 -04:00
parent 3600f41f1f
commit 54357e1f22
2 changed files with 16 additions and 26 deletions

View File

@@ -505,9 +505,7 @@ var Buffer = Module("Buffer", {
if (sel.rangeCount) {
var range = sel.getRangeAt(0);
let vis = visible(range);
if (vis.width > 0 && vis.height > 0)
if (visible(range).height > 0)
return;
var { rect } = DOM(range);