commit | 5a030a540f4157d5c9905e3564282c92b4dcec9a | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Dec 01 17:48:29 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Dec 01 17:48:29 2016 +0100 |
tree | aed80b43f0c4fed9445a8a8a11d2896e57c8977b | |
parent | b129a447f3b580d4c941869672b0557c52c37e4d [diff] [blame] |
patch 8.0.0110 Problem: Drop command doesn't use existing window. Solution: Check the window width properly. (Hirohito Higashi)
diff --git a/src/buffer.c b/src/buffer.c index e5d2dde..e77fc04 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -4858,8 +4858,8 @@ wpnext = wp->w_next; buf = wp->w_buffer; if (buf->b_ffname == NULL - || (!keep_tabs && buf->b_nwindows > 1) - || wp->w_width != Columns) + || (!keep_tabs && (buf->b_nwindows > 1 + || wp->w_width != Columns))) i = opened_len; else {