commit - 661233ed8fe24a6c2a2cc74cfb5628aaa9737aa2
commit + ec9aa1067b075de798424833bb39cf6a090c0608
blob - 691e1e5e886170be1e4f48e83ad847ba3f8f95bf
blob + 3a02679bff017dd46a087543b13dde9b8b38d0a4
--- ui.c
+++ ui.c
static int wrap_page(struct buffer*, int);
static void print_vline(int, int, WINDOW*, struct vline*);
static void redraw_tabline(void);
-static void redraw_window(WINDOW*, int, int, struct buffer*);
+static void redraw_window(WINDOW*, int, int, int, struct buffer*);
static void redraw_help(void);
static void redraw_body(struct tab*);
static void redraw_modeline(struct tab*);
break;
case LINE_COMPL:
case LINE_COMPL_CURRENT:
- /*
- * TODO: should be width, but will break the
- * rendering. Fix when unlocking completions
- * buffer from olivetti-mode.
- */
- wrap_one(buffer, prfx, l, MIN(fill_column, width));
+ wrap_one(buffer, prfx, l, width);
+ break;
}
if (top_orig == l && buffer->top_line == NULL) {
}
static void
-redraw_window(WINDOW *win, int height, int width, struct buffer *buffer)
+redraw_window(WINDOW *win, int off, int height, int width, struct buffer *buffer)
{
struct vline *vl;
int l, onscreen;
continue;
wmove(win, l, 0);
- print_vline(x_offset, width, win, vl);
+ print_vline(off, width, win, vl);
if (vl == buffer->current_line)
onscreen = 1;
static void
redraw_help(void)
{
- redraw_window(help, help_lines, help_cols, &helpwin);
+ redraw_window(help, 0, help_lines, help_cols, &helpwin);
}
static void
tab->buffer.force_redraw =1;
last_tab = tab;
- redraw_window(body, body_lines, body_cols, &tab->buffer);
+ redraw_window(body, x_offset, body_lines, body_cols, &tab->buffer);
}
static inline char
static void
do_redraw_minibuffer_compl(void)
{
- redraw_window(minibuffer, 10, body_cols,
+ redraw_window(minibuffer, 0, 10, body_cols,
&ministate.compl.buffer);
}