diff options
| author | Richard M. Stallman | 2004-11-02 09:08:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-11-02 09:08:42 +0000 |
| commit | d41b17ea2faaa4185b1410c7af27f6b31d0b3251 (patch) | |
| tree | ee9cd718889647151f2a0025789c1aefc2d025df /src | |
| parent | dc297565e7204be213349cbf4bff6d17d2d24d76 (diff) | |
| download | emacs-d41b17ea2faaa4185b1410c7af27f6b31d0b3251.tar.gz emacs-d41b17ea2faaa4185b1410c7af27f6b31d0b3251.zip | |
(back_to_previous_visible_line_start):
Subtract 1 from pos when checking previous newline for invisibility.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index dfb2e8198a5..2ed455e7f6b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -4555,7 +4555,8 @@ back_to_previous_visible_line_start (it) | |||
| 4555 | { | 4555 | { |
| 4556 | Lisp_Object prop; | 4556 | Lisp_Object prop; |
| 4557 | 4557 | ||
| 4558 | prop = Fget_char_property (make_number (IT_CHARPOS (*it)), | 4558 | /* Check the newline before point for invisibility. */ |
| 4559 | prop = Fget_char_property (make_number (IT_CHARPOS (*it) - 1), | ||
| 4559 | Qinvisible, it->window); | 4560 | Qinvisible, it->window); |
| 4560 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) | 4561 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) |
| 4561 | visible_p = 0; | 4562 | visible_p = 0; |