Package: Emacs Version: 30.0.50 Here's a funny corner case I just bumped into: - Apply the `smerge-mode.patch` below to Emacs's` master` (and recompile `smerge-mode.el`). - Open the short diff file below with: emacs -Q --eval '(setq-default word-wrap t diff-font-lock-prettify t)' \ .../bug-weird-next-line.diff - In my case, when this opens there's a "word wrap" just before "This" and just before "\id{seg}" (on the 4th and 5th lines, resp). If that's not the case for you, resize your frame so that this is the case. - Do `C-n` a few times. What I see is that `C-n` jumps down to the "T" of the word-wrapped "This" as it should, but that the next `C-n` doesn't jump to the next (visual) line but jumps to the "s" of "This" instead. The same kind of misbehavior occurs on the next (logical) line with "\id{seg}". Stefan