Skip to content

Commit d9b6648

Browse files
committed
Remove unnecessary save-match-data
1 parent e0702f7 commit d9b6648

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ledger-navigate.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ Requires empty line separating xacts."
136136
(ledger-navigate-skip-lines-forwards comment-re)
137137
(setq end (point)))
138138
((looking-at-p "\\(?:comment\\|test\\)\\>")
139-
(setq end (or (save-match-data
140-
(re-search-forward "^end[[:blank:]]+\\(?:comment\\|test\\)\\_>" nil t))
139+
(setq end (or (re-search-forward "^end[[:blank:]]+\\(?:comment\\|test\\)\\_>" nil t)
141140
(point-max)))))
142141
(list begin end)))
143142

0 commit comments

Comments
 (0)