Skip to content

Commit f3703f2

Browse files
committed
fix PG bugs detecting multiple subdivisions in holes
1 parent f28e800 commit f3703f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

proofgeneral/narya.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,13 @@ Here \"empty\" means containing only whitespace; comments are nonempty."
582582
;; skip empty subdivision
583583
(unless (looking-at "[ \t\n]*[!ʔ]")
584584
(setq count (+ count 1)))
585-
(re-search-forward "[!ʔ]" (overlay-end ovl) 'limit))
585+
(re-search-forward "!" (overlay-end ovl) 'limit))
586586
count)))
587587

588588
(defun narya-choose-delimited-term (ovl prompt extra)
589589
"Given a hole overlay, prompt the user to choose one of the terms in it."
590-
(let* ((contents (string-trim (buffer-substring (overlay-start ovl) (overlay-end ovl))))
590+
(let* ((contents (string-trim (buffer-substring (+ (overlay-start ovl) 1)
591+
(- (overlay-end ovl) 1))))
591592
(terms (split-string contents "!"))
592593
(concatenated nil)
593594
(n 0)

0 commit comments

Comments
 (0)