3 ms·
Delta is great for what it does, but I consistently hit an issue where it truncates long lines. This post inspired me to check if the situation had changed... a
by CGamesPlay 2y ago
Delta is great for what it does, but I consistently hit an issue where it truncates long lines. This post inspired me to check if the situation had changed... and it has! Now if you set `git config --global --replace-all delta.max-line-length 0`, it will no longer truncate lines. It's unclear to me why this is not the default. Discussion about the change is in https://github.com/dandavison/delta/pull/290 https://github.com/dandavison/delta/pull/290.
- BossingAround 2y ago> It's unclear to me why this is not the default It's literally in the PR you mention: syntax-highlighting very long lines (e.g. minified .js) will be very slow if they are not truncated
- CGamesPlay 2y agoIf you read the comments, you’ll find https://github.com/dandavison/delta/pull/1746 https://github.com/dandavison/delta/pull/1746 which adds the option I mentioned, which limits the length of syntax highlighting, but still has a rather low limit on maximum (unhighlighted) line length :)