Mercurial > vim
comparison src/vim.h @ 12515:972ea22c946f v8.0.1136
patch 8.0.1136: W_WIDTH() is always the same
commit https://github.com/vim/vim/commit/0263146b5dbbb6c120ce2e7720256503b864425d
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 22 15:20:32 2017 +0200
patch 8.0.1136: W_WIDTH() is always the same
Problem: W_WIDTH() is always the same.
Solution: Expand the macro.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 22 Sep 2017 15:30:06 +0200 |
parents | 3ca08bf99396 |
children | f62696bd1a9f |
comparison
equal
deleted
inserted
replaced
12514:55f1b7ff0467 | 12515:972ea22c946f |
---|---|
857 /* Flags for find_file_*() functions. */ | 857 /* Flags for find_file_*() functions. */ |
858 #define FINDFILE_FILE 0 /* only files */ | 858 #define FINDFILE_FILE 0 /* only files */ |
859 #define FINDFILE_DIR 1 /* only directories */ | 859 #define FINDFILE_DIR 1 /* only directories */ |
860 #define FINDFILE_BOTH 2 /* files and directories */ | 860 #define FINDFILE_BOTH 2 /* files and directories */ |
861 | 861 |
862 #define W_WIDTH(wp) (wp->w_width) | |
863 #define W_ENDCOL(wp) (wp->w_wincol + wp->w_width) | 862 #define W_ENDCOL(wp) (wp->w_wincol + wp->w_width) |
864 #define W_VSEP_WIDTH(wp) (wp->w_vsep_width) | 863 #define W_VSEP_WIDTH(wp) (wp->w_vsep_width) |
865 #define W_STATUS_HEIGHT(wp) (wp->w_status_height) | 864 #define W_STATUS_HEIGHT(wp) (wp->w_status_height) |
866 #ifdef FEAT_MENU | 865 #ifdef FEAT_MENU |
867 # define W_WINROW(wp) (wp->w_winrow + wp->w_winbar_height) | 866 # define W_WINROW(wp) (wp->w_winrow + wp->w_winbar_height) |