diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-18 08:50:23 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-26 18:32:07 +0000 |
| commit | b4f1f72585df8fbc583b9cb7f168a971cffc5e02 (patch) | |
| tree | df6d0d40843fac3841b3b0bb565cafd9ac6760c7 /render.c | |
| parent | render: remove debug logging (diff) | |
render: don’t center content while doing an interactive resize
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2756,7 +2756,7 @@ maybe_resize(struct terminal *term, int width, int height, bool force) const int total_x_pad = term->width - grid_width; const int total_y_pad = term->height - grid_height; - if (term->conf->center) { + if (term->conf->center && (!term->window->is_resizing)) { term->margins.left = total_x_pad / 2; term->margins.top = total_y_pad / 2; } else { |
