Skip to content

Commit

Permalink
Update chunk search to respect chunks with errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pkryger committed Jan 22, 2024
1 parent 2d33bdd commit 48d645c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions difftastic.el
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,14 @@ data."
;; file-chunk
,@(when file-chunk
'((optional " --- " (group (1+ digit)) "/" (1+ digit))))
;; language at the end
" --- " (or ,@(difftastic--languages)) eol))))))
;; language or error at the end
(or
(seq " --- " (or ,@(difftastic--languages)))
(seq " --- Text ("
(1+ digit)
" " (or ,@(difftastic--languages))
" parse errors, exceeded DFT_PARSE_ERROR_LIMIT)"))
eol))))))

(defun difftastic--chunk-bol (file-chunk)
"Find line beginning position.
Expand Down

0 comments on commit 48d645c

Please sign in to comment.