We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07939df commit 021fdb1Copy full SHA for 021fdb1
swift-mode-beginning-of-defun.el
@@ -662,10 +662,11 @@ PREFERRED-DIRECTION is the preferred direction of extension when DIRECTION is
662
(new-region (nth 0 new-region-and-direction))
663
(new-direction (nth 1 new-region-and-direction)))
664
(when new-region
665
- (setq new-region
666
- (cons
667
- (min (car original-region) (car new-region))
668
- (max (cdr original-region) (cdr new-region))))
+ (when (/= (car original-region) (cdr original-region))
+ (setq new-region
+ (cons
+ (min (car original-region) (car new-region))
669
+ (max (cdr original-region) (cdr new-region)))))
670
;; Marks the whole outer block if the mark got out of the outer block.
671
(save-excursion
672
(goto-char (cdr new-region))
0 commit comments