Commit Graph

12724 Commits

Author SHA1 Message Date
Jesse Grosjean
82da0865bc Merge branch 'master' of https://github.com/atom/atom into upstream 2015-04-02 12:23:03 -04:00
Antonio Scandurra
b3bdad084f Always mutate selections in order 2015-04-02 16:35:26 +02:00
Antonio Scandurra
44d88e082c 🐛 Always copy selections in order 2015-04-02 16:28:22 +02:00
Cheng Zhao
32f2e4c4bc Merge branch 'master' into asar
Conflicts:
	apm/package.json
2015-04-02 10:08:33 +08:00
Ben Ogle
e29b8416a1 Always add the item to the parent. 2015-04-01 17:41:00 -07:00
Ben Ogle
48c05210fa Remove specs from text-editor-component 2015-04-01 17:41:00 -07:00
Ben Ogle
bed09cf0ef Presenter positions overlays when the overlay doesn’t have a size
Fix presenter specs
2015-04-01 17:41:00 -07:00
Ben Ogle
77139104fd Remove getOverlayDimensions
No longer needed
2015-04-01 17:41:00 -07:00
Ben Ogle
3adc646a79 Remove the horribleUpdateMethod 2015-04-01 17:41:00 -07:00
Ben Ogle
32572c0106 Add ViewRegistry::pollAfterNextUpdate
Closes #6196
2015-04-01 17:41:00 -07:00
Ben Ogle
b0794bbb68 Move the overlay calculation into the presenter. 2015-04-01 17:40:59 -07:00
Ben Ogle
c62f06af9d Cache the overlay dimensions in the presenter 2015-04-01 17:40:59 -07:00
Ben Ogle
0fa03f15b6 Update overlay rendering 2015-04-01 17:40:59 -07:00
Ben Ogle
6b5a74e3b6 Update specs for overlay rendering 2015-04-01 17:40:59 -07:00
Ben Ogle
8749db30cf Add OverlayManager to the TextEditorComponent 2015-04-01 17:40:59 -07:00
Ben Ogle
db35022d0e Remove OverlayManager from the LinesComponent 2015-04-01 17:40:59 -07:00
Mert Kahyaoğlu
33faef2499 remove duplicate switch case 2015-04-01 20:34:59 +03:00
Ben Ogle
72aa0524c4 Merge pull request #6200 from mertkahyaoglu/master
minor changes in decoration.coffee
2015-04-01 08:31:57 -07:00
Mert Kahyaoğlu
93e4b061fa minor changes in decoration.coffee 2015-04-01 16:39:51 +03:00
Vegar Vikan
4cf34cc1fa Documentation: workspace.open( ) refrasing 2015-04-01 00:21:59 +02:00
Jesse Grosjean
4a864e79dc Fix screenPositionForPixelPosition for case above first row.
Currently screenPositionForPixelPosition special cases pixel positions
below the last row so that the column position is always set to the
last column of the last line, even if the pixel 'x' position is less
then that column.

This patch special cases picks above the first row so that the  text
column position will be in the first column even if the pixel 'x'
position is greater then that column.

At a higher level, this patch fixes the problem where you can’t select
to the start of a text field by just clicking and dragging up. Instead
you have to click and drag back (x axis) beyond the start of the text
field.
2015-03-30 13:09:30 -04:00
Cheng Zhao
685e4ebe96 Update path to apm in squirrel-update and package-manager 2015-03-30 15:01:19 +08:00
Cheng Zhao
c52058ef12 Always install commands from process.resourcesPath 2015-03-30 15:01:19 +08:00
Cheng Zhao
3ce12693e6 Install apm to process.resourcesPath 2015-03-30 15:01:19 +08:00
Cheng Zhao
01130230e4 Copy LICENSE.md to process.resourcesPath
The LICENSE file is needed by mkdeb task, we should move it out of asar
archive.
2015-03-30 15:01:19 +08:00
Cheng Zhao
a8b919f0e0 Print errors that happened before task-bootstrap 2015-03-30 15:01:19 +08:00
Cheng Zhao
e79a23f39a Do not set "cwd" for tasks
The task can be inside an asar archive, which is not allowed to be cwd.
2015-03-30 15:01:18 +08:00
Nikolaus Wittenstein
5a3f2035a1 Replace skipAtomicTokens with clip
When clipping a screen position, callers used to have to pick between
clipping to the left edge or the right edge when the position was in the
middle of an atomic token. This change allows them to choose the closest
edge, and makes this the default.

This makes selecting hard tabs (or any other atomic tokens) work in a
similar manner as in other text editors; that is, when clicking near
the middle of a tab, the insertion point will move to the closest edge
rather than the left edge.
2015-03-29 19:43:25 -04:00
Nikolaus Wittenstein
372fb49c88 TokenizedLine::screenColumnForBufferColumn calculates more accurately
screenColumnForBufferColumn used to break only if the current column
was strictly greater than the target column. This commit changes it so
it breaks when greater or equal, which is how bufferColumnForScreenColumn
works.

This also adds some unit tests for screenColumnForBufferColumn's
interactions with hard tab characters.
2015-03-29 19:43:25 -04:00
Nikolaus Wittenstein
3551780cdf Marker::setHead/TailScreenPosition no longer clip unnecessarily
DisplayBuffer::bufferPositionForScreenPosition calls clipScreenPosition
first thing, meaning that Marker::setHead/TailScreenPosition don't need
to call clipScreenPosition before calling bufferPositionForScreenPosition.
2015-03-29 19:43:25 -04:00
Max Brunsfeld
230eb12a8a Fix double autoscroll when moving cursor 2015-03-27 10:27:24 -07:00
Kevin Sawicki
c12f94907d Remove grim.deprecate override 2015-03-26 16:36:00 -07:00
Nathan Sobo
127e0fbf6b Merge pull request #6114 from atom/mb-ns-fix-autoscroll
Fix autoscroll on undo
2015-03-26 17:34:39 -06:00
Nathan Sobo
ae4f7f6170 Explicitly autoscroll when needed
Rather than when the selection’s marker changes. This is simpler than
suppressing autoscroll via state when we don’t want it. It also captures
the intent to autoscroll when attempting to move the cursor at the
beginning or end of the document.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 16:48:24 -06:00
Nathan Sobo
99c437ccec Allow autoscroll override option in cursor/selection methods
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 16:48:21 -06:00
Kevin Sawicki
a70be30ee7 🎨 2015-03-26 14:37:30 -07:00
Kevin Sawicki
14d1fc2269 Merge pull request #5898 from basarat/master
Transpile all .ts files
2015-03-26 14:33:04 -07:00
Nathan Sobo
10458a5b45 Always autoscroll when the range of the last selection changes
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2015-03-26 15:30:53 -06:00
Kevin Sawicki
45afc9eb46 Handle EISDIR save errors
Closes #6100
2015-03-26 13:29:30 -07:00
Max Brunsfeld
2f5d975338 Remove autoscroll-related legacy editor view support
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-03-26 11:12:37 -07:00
Kevin Sawicki
27ffac5f1a Set less property on caught error 2015-03-24 13:17:57 -07:00
Kevin Sawicki
40b4e36c09 Add custom formatting for Less errors 2015-03-24 13:17:56 -07:00
Basarat Syed
6f1b061dac Added TypeScript to the compile-cache 2015-03-24 18:05:30 +11:00
Michael Bolin
14316b1cd7 Add Repository::getType().
For `GitRepository`, this will return `"git"`.
2015-03-23 15:38:38 -07:00
Kevin Sawicki
11a5b71fb3 Merge pull request #6047 from postcasio/project-deprecations
Fix deprecated calls and recommendations in deprecated methods
2015-03-23 09:24:07 -07:00
liuxiong332
47742768a2 add specs which simulate mouse action in PaneResizeHandleElement to test the resize behavior. 2015-03-23 19:47:05 +08:00
postcasio
c4ae567e8f Fix deprecated calls and recommendations in deprecated methods 2015-03-20 09:22:02 +00:00
Kevin Sawicki
ec0681ed36 Merge pull request #6038 from atom/ks-remove-unwanted-loop-returns
Remove unwanted loop returns
2015-03-19 14:16:26 -07:00
Kevin Sawicki
576e00fb93 Keep returning array from TextEditor::mutateSelectedText 2015-03-19 11:57:16 -07:00
Kevin Sawicki
9f31afcbc9 Add explicit return after while loop 2015-03-19 11:48:40 -07:00