Antonio Scandurra
b03aa4bf40
Merge branch 'master' into as-cjk-soft-wrap
...
# Conflicts:
# spec/display-buffer-spec.coffee
2015-10-16 10:23:44 +02:00
Antonio Scandurra
20b0523833
💚
2015-10-15 16:41:27 +02:00
Max Brunsfeld
32780e2823
Merge branch 'master' into ns-alternative-test-env
...
Conflicts:
package.json
2015-10-14 14:12:42 -07:00
Antonio Scandurra
582fa571b8
📝 Better spec description
2015-10-14 16:20:42 +02:00
Antonio Scandurra
6b01811d20
Avoid stack overflow when scrolling with non-integer values
...
We were mistakenly using the rounded scroll top to guard against such cases.
This fixes it by using `@realScrollTop` instead.
2015-10-14 16:10:12 +02:00
Nathan Sobo
4c51d29868
Merge remote-tracking branch 'origin/master' into ns-alternative-test-env
2015-10-07 16:10:29 -05:00
Antonio Scandurra
112ee01bd9
Don't use atom globals in TextEditorElement
...
...except when the element is instantiated via HTML
2015-10-07 15:25:01 -05:00
Nathan Sobo
51abab930d
Parameterize config on editor instead of using global atom.config
2015-10-07 15:24:58 -05:00
Antonio Scandurra
0bee6a0cc1
Avoid invalidating state when clearing screen rows to measure
2015-10-05 16:10:58 +02:00
Antonio Scandurra
2ffa7da59e
🐎 Remove rows to measure in the next frame
2015-10-02 12:38:19 +02:00
Antonio Scandurra
e94ff33d83
🐛 Exclude invalid tiles
2015-10-01 12:58:02 +02:00
Antonio Scandurra
2b6973d4b1
Fix a 🐛 where some invalid lines were being measured
2015-09-30 17:44:43 +02:00
Antonio Scandurra
e43e1ed22e
Merge branch 'master' into as-double-reflow-measurements
...
# Conflicts:
# src/text-editor-presenter.coffee
2015-09-30 12:40:55 +02:00
Antonio Scandurra
214f42b2e7
🎨 Unify ::updateScroll... and ::commitPendingScroll...
2015-09-30 12:32:07 +02:00
Antonio Scandurra
cc98cab917
Better rows per page calculation
2015-09-30 09:17:43 +02:00
Antonio Scandurra
5dcfea0a82
💚 Fix TextEditorPresenter specs
2015-09-29 16:11:59 +02:00
Antonio Scandurra
b481250757
Always render the longest screen row
2015-09-29 11:41:44 +02:00
Antonio Scandurra
49577313e4
Remove yardstick to start with a clean slate
2015-09-29 10:25:54 +02:00
Antonio Scandurra
e648d880ed
Manually set rows per page in the model
2015-09-29 08:24:28 +02:00
Antonio Scandurra
47b6f043e9
Merge branch 'master' into as-double-reflow-measurements
...
# Conflicts:
# src/text-editor-presenter.coffee
2015-09-28 11:19:56 +02:00
Antonio Scandurra
0e72593a0c
Enforce a 'last scroll wins' model for batched scrolls
2015-09-25 10:43:20 +02:00
Antonio Scandurra
d65b5d1793
Revert "Maintain scroll history"
...
This reverts commit 2e6bb53303 .
2015-09-25 10:31:48 +02:00
Antonio Scandurra
2e6bb53303
Maintain scroll history
2015-09-24 16:25:58 +02:00
Antonio Scandurra
365a586466
Ensure realScroll... is up to date with scroll...
2015-09-24 15:16:40 +02:00
Antonio Scandurra
1f81c633e0
Serialize state using logical coordinates
2015-09-24 09:01:51 +02:00
Antonio Scandurra
0f7d88c77b
💚 Fix remaining failures in TextEditorPresenter
2015-09-23 16:14:15 +02:00
Antonio Scandurra
b198acc995
Fix soft wrapping when editorWidthInChars is used
2015-09-23 15:34:44 +02:00
Antonio Scandurra
fffcfb3405
Save scroll positions in the model to serialize 'em
2015-09-23 15:34:44 +02:00
Antonio Scandurra
60fdd3793f
Stop reporting scroll positions to the model
2015-09-23 15:34:44 +02:00
Antonio Scandurra
8463d5c59d
Start porting DisplayBuffer specs
2015-09-23 15:34:43 +02:00
Antonio Scandurra
d3b1d309ba
Make sure scroll positions are integers
2015-09-23 15:34:41 +02:00
Antonio Scandurra
ddd7aacd9d
💚 Fix TextEditorComponent specs
2015-09-23 15:34:22 +02:00
Antonio Scandurra
68e2d7e7e4
wip
2015-09-22 17:30:51 +02:00
Antonio Scandurra
b5a59017d5
wip
2015-09-22 16:20:15 +02:00
Antonio Scandurra
13f82280a0
💚 Fix presenter specs
2015-09-21 11:05:35 +02:00
Antonio Scandurra
4318de43c9
wip
2015-09-20 21:02:25 +02:00
Antonio Scandurra
af41b71cd8
Redesign LinesYardstick
2015-09-20 12:10:09 +02:00
Antonio Scandurra
7fafdbb6ab
Implement ::getStateForMeasurements(screenRows)
2015-09-18 14:00:04 +02:00
Antonio Scandurra
03507f7be3
Revert previous commit
2015-09-18 12:25:01 +02:00
Antonio Scandurra
b773b60c7b
🐛 Avoid creating a useless extra tile
2015-09-18 12:03:00 +02:00
Antonio Scandurra
96de78f264
🔥 Avoid computing top for line and line numbers
2015-09-18 11:36:18 +02:00
Antonio Scandurra
96d4bdb173
Revert changes to the presenter and the component
2015-09-18 10:35:29 +02:00
Antonio Scandurra
bf7d7e0d2a
Improve LinesYardstick design
...
We have shifted the responsibility of orchestrating state updates and
measurements to the yardstick. The presenter still needs to be updated to make
use of these new capabilities.
2015-09-18 10:17:55 +02:00
Antonio Scandurra
8a0d029ad1
🎨 Rename to ::onWillNeedMeasurements
2015-09-17 16:34:57 +02:00
Antonio Scandurra
2dd944f3ee
Trigger ::onWillMeasure before measuring anything
2015-09-16 12:07:57 +02:00
Antonio Scandurra
2750a384ac
💚 Fix TextEditorPresenter specs
...
...so that they play nicely with LinesYardstick
2015-09-16 11:33:51 +02:00
Antonio Scandurra
578b157da0
Differentiate between gutter and lines tiles
...
...and fix specs as well. 💚
2015-09-15 17:22:22 +02:00
Antonio Scandurra
8e06e06899
Compute the state for the longest line on screen
2015-09-15 16:32:42 +02:00
Antonio Scandurra
fe039a0f3c
💚
2015-09-09 13:31:34 +02:00
Antonio Scandurra
0d248e0c5b
Merge pull request #8500 from natthu/master
...
Fix a bug with refreshing the gutter UI.
2015-08-31 14:24:12 +02:00