branch: elpa/subed commit d3d201312ba05a9590972a34a5a39629dab2ccf3 Author: Random User <rnd...@posteo.de> Commit: Random User <rnd...@posteo.de>
Look for stop time only on the relevant line --- subed/subed-srt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subed/subed-srt.el b/subed/subed-srt.el index 44b0add..7880073 100644 --- a/subed/subed-srt.el +++ b/subed/subed-srt.el @@ -182,7 +182,8 @@ Return point or nil if no stop time could be found." (interactive) (save-match-data (when (subed-srt-move-to-subtitle-id sub-id) - (search-forward " --> " nil t) + (forward-line 1) + (re-search-forward " +--> +" (point-at-eol) t) (when (looking-at subed-srt--regexp-timestamp) (point)))))