Index: trunk/parsers/wikidom/lib/hype/views/es.ContentView.js |
— | — | @@ -200,8 +200,8 @@ |
201 | 201 | es.ContentView.prototype.drawSelection = function( range ) { |
202 | 202 | range.normalize(); |
203 | 203 | |
204 | | - var fromLineIndex = this.getLineIndex( range.start ), |
205 | | - toLineIndex = this.getLineIndex( range.end ), |
| 204 | + var fromLineIndex = this.getRenderedLineIndex( range.start ), |
| 205 | + toLineIndex = this.getRenderedLineIndex( range.end ), |
206 | 206 | fromPosition = this.getRenderedPositionFromOffset( range.start ), |
207 | 207 | toPosition = this.getRenderedPositionFromOffset( range.end ); |
208 | 208 | |
— | — | @@ -261,7 +261,7 @@ |
262 | 262 | * @param {Integer} offset Offset to get line for |
263 | 263 | * @returns {Integer} Index of rendered lin offset is within |
264 | 264 | */ |
265 | | -es.ContentView.prototype.getLineIndex = function( offset ) { |
| 265 | +es.ContentView.prototype.getRenderedLineIndex = function( offset ) { |
266 | 266 | for ( var i = 0; i < this.lines.length; i++ ) { |
267 | 267 | if ( this.lines[i].range.containsOffset( offset ) ) { |
268 | 268 | return i; |