commit | 0263146b5dbbb6c120ce2e7720256503b864425d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Sep 22 15:20:32 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Sep 22 15:20:32 2017 +0200 |
tree | b6f18fde8fd4bbc29c322b414ac584106e512d7a | |
parent | 53f8174eaeb93b381cf74c58863f8fe82748a22a [diff] [blame] |
patch 8.0.1136: W_WIDTH() is always the same Problem: W_WIDTH() is always the same. Solution: Expand the macro.
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 143ea55..b4351b2 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c
@@ -177,7 +177,7 @@ if (width <= 0) width = curbuf->b_p_tw; if (width == 0 && curbuf->b_p_wm > 0) - width = W_WIDTH(curwin) - curbuf->b_p_wm; + width = curwin->w_width - curbuf->b_p_wm; if (width <= 0) width = 80; }