Skip to content

Errors that occur at the very end of the line somehow extend the line to the start of the next one #32

@johnhamelink

Description

@johnhamelink

In this example, I have written a sentence and added a space, then moved away from that line or paused for a duration longer than the debounce value. This triggers a flymake diagnostic due to there being a trailing space on that line - that all makes sense. However, something about how flyover renders the diagnostic results in the end of line character position descending (visually) into the next line, as if there was a word wrap on that line. When flyover disappears, the issue also resolves.

Before fixing the diagnostic:
Image

After fixing the diagnostic:
Image

My flyover configuration:

(use-package flyover
  :ensure t
  :hook ((flycheck-mode . flyover-mode)
         (flymake-mode . flyover-mode))
  :custom
  ;; Checker settings
  (flyover-checkers '(flycheck flymake))
  (flyover-levels '(error warning info))

  ;; Appearance
  (flyover-use-theme-colors t)
  (flyover-background-lightness 45)
  (flyover-percent-darker 40)
  (flyover-text-tint 'lighter)
  (flyover-text-tint-percent 50)

  ;; Icons
  (flyover-info-icon "")
  (flyover-warning-icon "")
  (flyover-error-icon "")

  ;; Display settings
  (flyover-hide-checker-name t)
  (flyover-show-virtual-line nil)
  (flyover-virtual-line-type 'line-no-arrow)
  (flyover-line-position-offset 1)
  (flyover-show-error-id t)

  ;; Message wrapping
  (flyover-wrap-messages t)
  (flyover-max-line-length 80)

  ;; Performance
  (flyover-debounce-interval 0.2))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions