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 64dff57 commit 04c8a62Copy full SHA for 04c8a62
swift-mode-beginning-of-defun.el
@@ -92,8 +92,11 @@ and the region is not active."
92
(setq result (swift-mode:beginning-of-defun-backward))
93
(when (< (point) last-position)
94
(setq arg (1- arg)))
95
- (when (< 0 arg)
96
- (swift-mode:backward-token-or-list))))
+ (when (and (< 0 arg)
+ (eq 'outside-of-buffer
97
+ (swift-mode:token:type
98
+ (swift-mode:backward-token-or-list))))
99
+ (setq result nil))))
100
;; Moving forward
101
(setq result (swift-mode:beginning-of-defun-forward))
102
(when (and result (< pos (point)))
0 commit comments