Commit 7b8339b6 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(vmotion): Do not reserve one column for continuation

marks on window frames.
parent c953fe1b
......@@ -1836,9 +1836,7 @@ vmotion (from, vtarget, w)
register int from, vtarget;
struct window *w;
/* We don't need to make room for continuation marks (we have fringes now),
so hould we really subtract 1 here if FRAME_WINDOW_P ? ++KFS */
int width = window_box_text_cols (w) - 1;
int width = window_box_text_cols (w);
int hscroll = XINT (w->hscroll);
struct position pos;
/* vpos is cumulative vertical position, changed as from is changed */
......@@ -1859,6 +1857,12 @@ vmotion (from, vtarget, w)
XSETWINDOW (window, w);
/* We must make room for continuation marks if we don't have fringes. */
if (!FRAME_WINDOW_P (XFRAME (w->frame)))
width -= 1;
/* If the window contains this buffer, use it for getting text properties.
Otherwise use the current buffer as arg for doing that. */
if (EQ (w->buffer, Fcurrent_buffer ()))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment