]> git.eshelyaron.com Git - emacs.git/commitdiff
(back_to_previous_visible_line_start):
authorRichard M. Stallman <rms@gnu.org>
Tue, 2 Nov 2004 09:08:42 +0000 (09:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 2 Nov 2004 09:08:42 +0000 (09:08 +0000)
Subtract 1 from pos when checking previous newline for invisibility.

src/xdisp.c

index dfb2e8198a572c315f69605c8465ba9e5b54dd47..2ed455e7f6bc43cf7c9ebba3edae60c40891d89f 100644 (file)
@@ -4555,7 +4555,8 @@ back_to_previous_visible_line_start (it)
        {
          Lisp_Object prop;
 
-         prop = Fget_char_property (make_number (IT_CHARPOS (*it)),
+         /* Check the newline before point for invisibility.  */
+         prop = Fget_char_property (make_number (IT_CHARPOS (*it) - 1),
                                     Qinvisible, it->window);
          if (TEXT_PROP_MEANS_INVISIBLE (prop))
            visible_p = 0;