Commit Graph

13191 Commits

Author SHA1 Message Date
Antonio Scandurra
780979e122 Make sure showing errors works correctly 2015-11-11 12:05:03 -07:00
Antonio Scandurra
9c81e87e84 🐛 Fix incorrectly reported width when measuring lines
This commit fixes what seems to be a bug in Chromium.

When measuring lines (and with a special character sequence), it could happen
that Range(0, 0). getBoundingClientRect().width reports a number greater than 0.
This seems to happen when the font size is smaller than 12px and it's probably
due to subpixel font scaling. To solve it we've explicitly included a guard
clause that prevents this problem to happen.
2015-11-02 18:47:29 +01:00
Yakira C. Bristol
908316ec72 Remove keyPath as a possible return value on the event object for onDidChange in config.coffee
The value is never returned on the object so the documention was updated to reflect that
2015-10-27 18:20:37 -04:00
Daniel Imms
5e1c2632e6 📝 Fix Cursor.getScreenPosition comment return type 2015-10-25 18:28:56 -07:00
Nathan Sobo
d2fdc414e7 Merge pull request #8919 from bencolon/workspace_vertical_splits
Add top/bottom split options when opening uri in a workspace
2015-10-22 14:13:42 -06:00
Ben Colon
1b0d72b232 Add up/down split options when opening uri in a workspace 2015-10-22 17:03:10 +02:00
Nathan Sobo
bd199545c0 In PaneContainer.prototype.saveAll, only save modified items 2015-10-21 20:22:20 -06:00
Ben Ogle
f679c4319c Merge branch 'beta' 2015-10-21 17:03:31 -07:00
Max Brunsfeld
3ba9fafbc5 Merge pull request #9218 from atom/mb-fix-dev-mode-new-window
Don't try to reuse existing normal windows as dev mode windows
2015-10-21 13:46:15 -07:00
Max Brunsfeld
8a6915e7a6 Pass application delegate to PaneElement 2015-10-21 10:57:56 -07:00
Nathan Sobo
33839d1f0e Pass current options to loadState 2015-10-20 19:52:42 -06:00
Antonio Scandurra
5fc521fedc Add deprecated method to TextEditor 2015-10-20 08:37:15 +02:00
Antonio Scandurra
40e3b08a8c Add TextEditorElement::getMaxScrollTop 2015-10-20 08:36:27 +02:00
Wliu
1593cdbf7a 🐛 Fix toggle-menu-bar command 2015-10-19 18:19:43 -04:00
Max Brunsfeld
3535525ad9 Don't try to reuse existing normal windows as dev mode windows 2015-10-19 13:43:40 -07:00
Nathan Sobo
979b08f5fe Override console.log/error/warn in headless mode to log to stdout/stderr 2015-10-17 10:55:23 -06:00
Nathan Sobo
c35411cd29 🎨 2015-10-17 10:52:39 -06:00
Nathan Sobo
abee4c1db4 Default devMode to true ASAP if running Atom in test mode
Previously, we ran the window in devMode, but didn’t set devMode to true
early enough to compute the correct resource path. This caused errors
when attempting to load the bundled keymaps when running atom —test
without the —dev flag.
2015-10-17 10:39:26 -06:00
Thomas Johansen
2cb77aa4b9 🐛 Use fat arrow to capture correct scope
Fixes #9187
2015-10-17 16:55:57 +02:00
Thomas Johansen
306729f20c 🐛 Use fat arrow to capture correct scope
Fixes #9186
2015-10-17 16:55:04 +02:00
Wliu
6495f1a531 Revert "🔥 subpixel-font-scaling"
This reverts commit 1c0420b3bb.
2015-10-16 19:58:47 -04:00
Wliu
1c0420b3bb 🔥 subpixel-font-scaling
This option was removed in Electron v0.33.9
2015-10-16 19:57:40 -04:00
Max Brunsfeld
f31328baec Disable linter warning for Error prototype method 2015-10-16 16:25:45 -07:00
Max Brunsfeld
c36b4bd169 Make Error.prepareStackTrace read-only (again)
This time, we've provided a way for Grim to access an Error's
raw stack trace array
2015-10-16 16:25:45 -07:00
Max Brunsfeld
7d74382782 Fix extra child node removal in PanelContainerElement 2015-10-16 16:18:40 -07:00
Nathan Sobo
26a5b26cb9 Merge pull request #8779 from atom/cz-electron-32
Update to Electron v0.33.x
2015-10-16 15:59:14 -06:00
Max Brunsfeld
cd9e24ea33 Don't prevent renderer-side reloads 2015-10-16 12:04:35 -07:00
Nathan Sobo
badba2810e Add disablePinchToZoom to ApplicationDelegate 2015-10-16 11:08:52 -06:00
Nathan Sobo
5f2b5a16df Use WebContents.prototype.isLoading instead of defunct .loaded
Fixes cmd-o interaction.
2015-10-16 11:08:51 -06:00
Cheng Zhao
a5c9fcec2c Disable pinch-to-zoom, fixes #8850 2015-10-16 11:08:51 -06:00
Cheng Zhao
70fc6dd524 registerProtocol has been deprecated 2015-10-16 11:08:51 -06:00
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
3f53a72620 🐎 Cache text in TokenIterator 2015-10-16 10:48:55 +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
Max Brunsfeld
27526f492c Fix fall-back to dev resource path in main 2015-10-15 18:01:20 -07:00
Max Brunsfeld
93fe0208a5 Make atom.setSize() synchronous again, for now
This method is public, and a spec for TextEditorComponent dependend on it
staying synchronous
2015-10-15 15:12:57 -07:00
Nathan Sobo
28ed6f3d9f Restore async window method calls
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-15 13:26:30 -06:00
Antonio Scandurra
4766c98bbe Treat Korean characters as different kinds of chars 2015-10-15 21:02:21 +02:00
Antonio Scandurra
7394cc531c Measure half width characters 2015-10-15 20:06:38 +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
8f7b303fc5 Recognize half width symbols 2015-10-15 19:01:23 +02:00
Antonio Scandurra
a3c3b48caa Recognize full width symbols 2015-10-15 18:59:12 +02:00
Antonio Scandurra
1fc9a25b5c Recognize half width characters 2015-10-15 18:57:11 +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
4c66341624 Measure double width char widths 2015-10-15 18:08:35 +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