diff options
| author | Kim F. Storm | 2004-04-05 21:41:08 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-04-05 21:41:08 +0000 |
| commit | 7b8339b6033bc7e77a94cf9cb4db5d3f99eb915b (patch) | |
| tree | 18d05ae3b7a4455954dc95439f9622b80c48118a /src/indent.c | |
| parent | c953fe1bac239f6b444ef83da77bb4a4d2fff568 (diff) | |
| download | emacs-7b8339b6033bc7e77a94cf9cb4db5d3f99eb915b.tar.gz emacs-7b8339b6033bc7e77a94cf9cb4db5d3f99eb915b.zip | |
(vmotion): Do not reserve one column for continuation
marks on window frames.
Diffstat (limited to 'src/indent.c')
| -rw-r--r-- | src/indent.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/indent.c b/src/indent.c index 9a2ab0956e5..2651d4d7c06 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1836,9 +1836,7 @@ vmotion (from, vtarget, w) | |||
| 1836 | register int from, vtarget; | 1836 | register int from, vtarget; |
| 1837 | struct window *w; | 1837 | struct window *w; |
| 1838 | { | 1838 | { |
| 1839 | /* We don't need to make room for continuation marks (we have fringes now), | 1839 | int width = window_box_text_cols (w); |
| 1840 | so hould we really subtract 1 here if FRAME_WINDOW_P ? ++KFS */ | ||
| 1841 | int width = window_box_text_cols (w) - 1; | ||
| 1842 | int hscroll = XINT (w->hscroll); | 1840 | int hscroll = XINT (w->hscroll); |
| 1843 | struct position pos; | 1841 | struct position pos; |
| 1844 | /* vpos is cumulative vertical position, changed as from is changed */ | 1842 | /* vpos is cumulative vertical position, changed as from is changed */ |
| @@ -1859,6 +1857,12 @@ vmotion (from, vtarget, w) | |||
| 1859 | 1857 | ||
| 1860 | XSETWINDOW (window, w); | 1858 | XSETWINDOW (window, w); |
| 1861 | 1859 | ||
| 1860 | /* We must make room for continuation marks if we don't have fringes. */ | ||
| 1861 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 1862 | if (!FRAME_WINDOW_P (XFRAME (w->frame))) | ||
| 1863 | #endif | ||
| 1864 | width -= 1; | ||
| 1865 | |||
| 1862 | /* If the window contains this buffer, use it for getting text properties. | 1866 | /* If the window contains this buffer, use it for getting text properties. |
| 1863 | Otherwise use the current buffer as arg for doing that. */ | 1867 | Otherwise use the current buffer as arg for doing that. */ |
| 1864 | if (EQ (w->buffer, Fcurrent_buffer ())) | 1868 | if (EQ (w->buffer, Fcurrent_buffer ())) |