mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-14 04:29:04 +03:00
0bc510ab58
The key was in LineMap.linesForScreenRows. For each screen line, it concatenates all line fragments (if there are indeed more than 1) that traverse that line to return a single line fragment representing the line. The key was to update the buffer delta for that fragment to always be 1,0. Because the wrapper is treating the folder as if it's the buffer, the lines it stores in its map need to traverse only a single "buffer" line (that's a single line after folds are taken into account). We may need better language than "screen" and "buffer" because the wrapper treats the folder as the "buffer" but that's confusing because it isn't. |
||
---|---|---|
.. | ||
atom | ||
fixtures | ||
stdlib | ||
spec-bootstrap.coffee | ||
spec-helper.coffee | ||
spec-suite.coffee |