]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix cursor motion when there's line-prefix and display string at BOL
authorEli Zaretskii <eliz@gnu.org>
Sat, 18 Feb 2023 11:40:56 +0000 (13:40 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Feb 2023 11:40:56 +0000 (13:40 +0200)
* src/xdisp.c (move_it_in_display_line_to): Handle 'line-prefix' and
'wrap-prefix' when the screen line has a display string at its
beginning.  (Bug#61580)

src/xdisp.c

index 1f630de75864ca9972960c70dc4336180745569b..f5d54974b133b1692256b05140426be114a1d85e 100644 (file)
@@ -9609,8 +9609,8 @@ move_it_in_display_line_to (struct it *it,
          else
            line_number_pending = true;
        }
-      /* If there's a line-/wrap-prefix, handle it.  */
-      if (it->method == GET_FROM_BUFFER)
+      /* If there's a line-/wrap-prefix, handle it, if we didn't already.  */
+      if (it->area == TEXT_AREA && !it->string_from_prefix_prop_p)
        handle_line_prefix (it);
     }