Closed ginqi7 closed 1 year ago
Hmm.. I am not able to reproduce this. Can you to provide more information? Maybe try emacs -q
.
I try to use minimal configuration like:
(require 'diff-hl)
(require 'sideline)
(require 'sideline-eldoc)
(global-diff-hl-mode)
(setq sideline-backends-skip-current-line t ; don't display on current line
sideline-order-left 'down ; or 'up
sideline-order-right 'up ; or 'down
sideline-format-left "%s " ; format for left aligment
sideline-format-right "%s" ; format for right aligment
sideline-priority 100 ; overlays' priority
sideline-display-backend-name nil)
(add-hook 'emacs-lisp-mode-hook #'sideline-mode)
(defun my-backend-async (command)
"Example async backend."
(cl-case command
(`candidates
(cons :async
(lambda (callback &rest _)
(funcall callback '("info 1" "info 2" "info 3")))))))
(setq sideline-backends-right '(my-backend-async)) ; use `sideline-backends-right' for right alignment
(setq sideline-backends-left nil) ; use `sideline-backends-right' for right alignment
My environment is :
sideline: 2fa3e671 diff-hl: 67ce270
Thanks for the minimal configuration! However, I'm still not able to reproduce this bug... I'm on Windows with Emacs 29.0.60
. Maybe something new with Emacs 30? 🤔 Can you try other Emacs versions to see if it occurs?
It needs that diff-hl-mode fringe and sideline-mode overlay are displayed on a same empty line.
So you could try to create a file in a git project, and commit it, and modify a empty line.
make sure a diff-hl-mode fringe shows on left and sideline overlay display on right.
Thanks! It's fixed in #11. Can you test to see if it works? :)
Thank you for your quick response. It's fixed.
I meet a strange issue, when using diff-hl and sideline together.
When both diff-hl and sideline are displayed on the same empty line, the sideline content will occupy two virtual lines. There are tree conditions:
The sideline content overlay will word-wrap to two virtual lines.
without diff-hl:
with diff-hl: