Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect background color when first line of diff hunk is added line #2

Open
dandavison opened this issue May 4, 2020 · 0 comments

Comments

@dandavison
Copy link
Owner

When the first line of a diff hunk is an added line, the green background color of Magit incorrectly extends back into Magit's hunk header line, and one character of green remains visible when the hunk header is folded.

image

An example of the type of diff output that triggers this is

diff --git a/lib_fzf.sh b/lib_fzf.sh
index 0a16e24..6aef3c1 100644
--- a/lib_fzf.sh
+++ b/lib_fzf.sh
@@ -1,3 +1,8 @@
+fzf-git-checkout () {
+    git checkout $(git branch | fzf)
+}
+
+
 -fzf-hist () {
     dan-history | fzf --no-sort --exact
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant