lazy highlighter for selected word

This commit is contained in:
nightwing 2012-05-30 22:45:12 +04:00
commit 9d0f2e41e8
6 changed files with 105 additions and 108 deletions

View file

@ -76,6 +76,11 @@ var Marker = function(parentEl) {
for ( var key in this.markers) {
var marker = this.markers[key];
if (!marker.range) {
marker.update(html, this, this.session, config);
continue;
}
var range = marker.range.clipRows(config.firstRow, config.lastRow);
if (range.isEmpty()) continue;