Skip to content

Commit 6fc1dcd

Browse files
Merge pull request #173 from juergenhoetzel/fix-phrase-detection
Fix phrase detection error
2 parents e04563b + f840a72 commit 6fc1dcd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

fsharp-mode-indent.el

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,10 +1595,13 @@ This tells add-log.el how to find the current function/method/variable."
15951595
(defun fsharp-beginning-of-block ()
15961596
"Move point to the beginning of the current top-level block"
15971597
(interactive)
1598-
(condition-case nil
1599-
(while (fsharp-goto-block-up 'no-mark))
1600-
(error (while (continuation-p)
1601-
(forward-line -1))))
1598+
(let ((prev (point)))
1599+
(condition-case nil
1600+
(while (progn (fsharp-goto-block-up 'no-mark)
1601+
(< (point) prev))
1602+
(setq prev (point)))
1603+
(error (while (continuation-p)
1604+
(forward-line -1)))))
16021605
(beginning-of-line))
16031606

16041607
(defun fsharp-end-of-block ()

0 commit comments

Comments
 (0)