Skip to content

Instantly share code, notes, and snippets.

@ufobat
Last active August 23, 2018 19:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ufobat/30a4cd45430a9c566b4ab680f694b0a3 to your computer and use it in GitHub Desktop.
@Tux
Copy link

Tux commented Aug 23, 2018

No, not at this moment, but it is up for discussion: https://www.perlmonks.org/?node_id=1220898
Whole lines are only colored when is is a deletion or an addition, not for changes. The top block in your example is a deletion, the bottom block is a change. Inside a change, only changed characters are colored, not the whole of the line. Read that perlmonk post I did. Opinions welcome.

@Tux
Copy link

Tux commented Aug 23, 2018

@ufobat
Copy link
Author

ufobat commented Aug 23, 2018

allright. I agree that this is a change. But when you change an empty string to \n"Compress::Snappy",\n"Compress::Zlib"\n it wont be colored?

@Tux
Copy link

Tux commented Aug 23, 2018

Empty to 3 lines:
20180823212314
(I committed a change thatt fixes color change on line overflow)

@Tux
Copy link

Tux commented Aug 23, 2018

20180823213404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment