Skip to content

Commit 82b88c7

Browse files
committed
when jumping to last region; set the cursor to region.b instead of region.begin()
1 parent a12527f commit 82b88c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MultiEditUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def run(self, edit):
77

88
selection = self.view.sel()
99
lastRegion = selection[-1]
10-
cursorPosition = lastRegion.begin()
10+
cursorPosition = lastRegion.b
1111
selection.clear()
1212
selection.add(sublime.Region(cursorPosition))
1313

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Sometimes selections contain surrounding whitespace which can get in the way of
5353

5454
### Remove empty regions
5555

56-
When splitting your selection or performing other actions on your selection, it can happen that some regions are empty while other are not. Often only the non-empty regions are of interest. The ```remove_empty_regions``` commands will take care of this and remove all empty regions from your current selection.
56+
When splitting your selection or performing other actions on your selection, it can happen that some regions are empty while others are not. Often only the non-empty regions are of interest. The ```remove_empty_regions``` commands will take care of this and remove all empty regions from your current selection.
5757

5858
![](http://philippotto.github.io/Sublime-MultiEditUtils/screens/07%20remove%20empty%20selections.gif)
5959

0 commit comments

Comments
 (0)