delta icon indicating copy to clipboard operation
delta copied to clipboard

🚀 Warn for blank at eof (Question)

Open wescande opened this issue 3 years ago • 0 comments

Hi,

While working on #1037 I noticed this comments:

            // TODO: Git recognizes blank lines at end of file (blank-at-eof)
            // as a whitespace error but delta does not yet.
            // https://git-scm.com/docs/git-config#Documentation/git-config.txt-corewhitespace

I have a local working version for detecting theses lines, the only remaining issue is: How should we display such line ?

  • Do you want to stop everything to print a error ?
  • Do you want to print a specific graphical char ? (I am thinking of zsh with it's reversed %: image

wescande avatar Apr 06 '22 21:04 wescande