]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of current line number in visual mode
authorEli Zaretskii <eliz@gnu.org>
Tue, 4 Jul 2017 15:43:03 +0000 (18:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 4 Jul 2017 15:43:03 +0000 (18:43 +0300)
* src/xdisp.c (maybe_produce_line_number): Fix visual-mode display
of current line when line-number-current-line face was customized.
Reported by Filipe Silva <filipe.silva@gmail.com>.

src/xdisp.c

index 47b81414630aa415fedaa0f954f6489758c70082..312ee10f280f1c172a580251b5d5d1aab25826bf 100644 (file)
@@ -20938,7 +20938,10 @@ maybe_produce_line_number (struct it *it)
         default face for the blank field beyond ZV.  */
       if (beyond_zv)
        tem_it.face_id = it->base_face_id;
-      else if (lnum_face_id != current_lnum_face_id && this_line == it->pt_lnum)
+      else if (lnum_face_id != current_lnum_face_id
+              && (EQ (Vdisplay_line_numbers, Qvisual)
+                  ? this_line == 0
+                  : this_line == it->pt_lnum))
        tem_it.face_id = current_lnum_face_id;
       else
        tem_it.face_id = lnum_face_id;