Commit Graph

335 Commits

Author SHA1 Message Date
Antonio Scandurra
05c6c9f9be Soft wrap only when we know lineMaxWidth 2015-10-16 11:14:20 +02:00
Antonio Scandurra
e843c2f058 🐎 Fetch scopes only if required 2015-10-16 11:03:15 +02:00
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
4766c98bbe Treat Korean characters as different kinds of chars 2015-10-15 21:02:21 +02:00
Antonio Scandurra
c616e86a00 Take into account half width chars as well 2015-10-15 19:24:00 +02:00
Antonio Scandurra
91e9f16ff6 💚 2015-10-15 19:22:12 +02:00
Antonio Scandurra
abf306943a 🐛 Measure latin chars with subpixel font scaling 2015-10-15 18:49:54 +02:00
Antonio Scandurra
43229a1b9e 🎨 2015-10-15 18:35:49 +02:00
Antonio Scandurra
4818d47980 Update wrapped screen lines when default width changes 2015-10-15 18:10:26 +02:00
Antonio Scandurra
27dc3da9e5 🎨 Conflate setting default and double-width chars width
Because they will always change together, and having two different setters seems
highly error-prone.
2015-10-15 17:53:37 +02:00
Antonio Scandurra
c2ee942df1 Take double width chars into account when soft wrapping 2015-10-15 16:24:08 +02:00
Antonio Scandurra
3c33a7ba9f Soft wrap based on default character width 2015-10-15 15:22:18 +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
df2d73a8df Don't use atom globals in TokenizedBuffer 2015-10-07 15:25:02 -05:00
Nathan Sobo
122bf72c75 Don’t use atom.packages global in TokenizedBuffer 2015-10-07 15:25:00 -05:00
Nathan Sobo
b2359f44a6 Don’t use atom.grammars global in TokenizedBuffer 2015-10-07 15:25:00 -05:00
Nathan Sobo
4f65452902 Don’t use atom.config global in TokenizedBuffer 2015-10-07 15:24:59 -05:00
Nathan Sobo
dc0709ef9e Don’t use atom.assert global in DisplayBuffer 2015-10-07 15:24:59 -05:00
Nathan Sobo
edd666b845 Don’t use atom.config global in DisplayBuffer 2015-10-07 15:24:59 -05:00
Antonio Scandurra
72093da1a7 🔥 🎉 Remove scoped character width 2015-09-29 17:32:20 +02:00
Antonio Scandurra
a0277728d6 🔥 Remove deprecated methods 2015-09-25 12:58:23 +02:00
Antonio Scandurra
ce714b9852 🎨 Rename to ::onDidRequestAutoscroll 2015-09-25 10:57:09 +02:00
Antonio Scandurra
535a9da946 wip 2015-09-24 11:21:26 +02:00
Antonio Scandurra
1f81c633e0 Serialize state using logical coordinates 2015-09-24 09:01:51 +02:00
Antonio Scandurra
91ef57ed29 Merge branch 'master' into as-display-buffer-logical-coordinates
# Conflicts:
#	src/display-buffer.coffee
2015-09-23 18:46:16 +02:00
Antonio Scandurra
e85f61cced Continue emitting events when setting scroll top in the model 2015-09-23 17:43:53 +02:00
Antonio Scandurra
870a5303e1 🔥 Remove unused code 2015-09-23 15:34:45 +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
140624326a Report the already calculated width to the model 2015-09-23 15:34:44 +02:00
Antonio Scandurra
abd1b05c65 Report the already calculated height to the model 2015-09-23 15:34:44 +02:00
Antonio Scandurra
fda981ed1d 🔥 Remove absolute scrolling from DisplayBuffer 2015-09-23 15:34:43 +02:00
Antonio Scandurra
49fae9b029 Test that the logical scroll event is triggered 2015-09-23 15:34:43 +02:00
Antonio Scandurra
e3dabd5200 Move scroll margin into TextEditorPresenter 2015-09-23 15:34:22 +02:00
Nathan Sobo
69c4764b2f Don’t use Serializable mixin in DisplayBuffer 2015-09-22 10:37:15 -06:00
Nathan Sobo
bf0bdd4882 🔥 Remove deprecations from DisplayBuffer 2015-09-22 10:37:07 -06:00
Thomas Johansen
c0f5a322fb 💚 Partially revert deprecation removal from DisplayBuffer 2015-09-22 10:37:06 -06:00
Thomas Johansen
1463266b84 🔥 Remove deprecations from DisplayBuffer 2015-09-22 10:37:05 -06:00
Antonio Scandurra
2588e9779e Avoid relying on ::scrollTop to calculate logical height 2015-09-22 18:13:41 +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
Nathan Sobo
314e082f1d Clean up max scroll margin code
Previously we were attempting the same computation twice, once
incorrectly when returning the scroll margins as integers and then doing
the same thing in terms of pixels. This just cleans up the original
calculation. It’s *slightly* different because it takes the floor to
continue returning integers, but the behavior is extremely close.
2015-08-27 17:40:01 -06:00
Nathan Sobo
2d25301ea0 Destroy folds when DisplayBuffer is destroyed
Fixes #4562
2015-07-27 12:04:46 -06:00
Nathan Sobo
5566d54f58 Don’t update screen lines if DisplayBuffer has been destroyed 2015-07-09 15:44:11 -05:00
Nathan Sobo
4567601ae9 Maintain change counts for debugging purposes
When we have an unexpected display-buffer or tokenized-buffer state,
we can include the change counts to make sure that every change to the
buffer has been processed by display-buffer and tokenized-buffer. If
they haven’t, there’s something wrong with our event ordering. If they
have, there’s a logic error somewhere else.
2015-07-09 02:18:24 -05:00
Nathan Sobo
afa6c9a786 Add invariant assertion about line count to see if we can find a bug
Does the line count ever get out of whack after an update, or is it
happening in some other way?
2015-07-09 01:55:13 -05:00
Nathan Sobo
3e7881f35f Report extra metadata when screen lines are undefined when clipping 2015-07-08 13:29:25 -05:00
aki
449c03cb35 Fix destroy listeners 2015-06-16 18:05:45 +09:00
Nathan Sobo
88812831ce Only check for max line length when lines exist 2015-06-05 23:40:56 +02:00
Nathan Sobo
56273e7eef Preserve large file mode across serialization and pane splits 2015-06-05 21:44:23 +02:00