diff options
author | Brandon Coleman <metrix1978@gmail.com> | 2014-05-28 08:01:33 -0500 |
---|---|---|
committer | Brandon Coleman <metrix1978@gmail.com> | 2014-06-12 01:20:36 -0500 |
commit | b3ac402695544b41cdaf61a3313a9691119b0671 (patch) | |
tree | 2b00c4baca23c6368cdc327fa1334891504ccc70 /src/nvim/vim.h | |
parent | e41284df2199a90c5ff70beddb814d116336c0ba (diff) | |
download | rneovim-b3ac402695544b41cdaf61a3313a9691119b0671.tar.gz rneovim-b3ac402695544b41cdaf61a3313a9691119b0671.tar.bz2 rneovim-b3ac402695544b41cdaf61a3313a9691119b0671.zip |
move VALID_* defines to buffer_defs.h
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r-- | src/nvim/vim.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h index eefb97962f..abe14e3e1d 100644 --- a/src/nvim/vim.h +++ b/src/nvim/vim.h @@ -132,34 +132,6 @@ typedef uint32_t u8char_T; # define textdomain(x) /* empty */ #endif -/* - * Flags for w_valid. - * These are set when something in a window structure becomes invalid, except - * when the cursor is moved. Call check_cursor_moved() before testing one of - * the flags. - * These are reset when that thing has been updated and is valid again. - * - * Every function that invalidates one of these must call one of the - * invalidate_* functions. - * - * w_valid is supposed to be used only in screen.c. From other files, use the - * functions that set or reset the flags. - * - * VALID_BOTLINE VALID_BOTLINE_AP - * on on w_botline valid - * off on w_botline approximated - * off off w_botline not valid - * on off not possible - */ -#define VALID_WROW 0x01 /* w_wrow (window row) is valid */ -#define VALID_WCOL 0x02 /* w_wcol (window col) is valid */ -#define VALID_VIRTCOL 0x04 /* w_virtcol (file col) is valid */ -#define VALID_CHEIGHT 0x08 /* w_cline_height and w_cline_folded valid */ -#define VALID_CROW 0x10 /* w_cline_row is valid */ -#define VALID_BOTLINE 0x20 /* w_botine and w_empty_rows are valid */ -#define VALID_BOTLINE_AP 0x40 /* w_botine is approximated */ -#define VALID_TOPLINE 0x80 /* w_topline is valid (for cursor position) */ - /* special attribute addition: Put message in history */ #define MSG_HIST 0x1000 @@ -213,24 +185,6 @@ typedef uint32_t u8char_T; #define FAIL 0 #define NOTDONE 2 /* not OK or FAIL but skipped */ -/* flags for b_flags */ -#define BF_RECOVERED 0x01 /* buffer has been recovered */ -#define BF_CHECK_RO 0x02 /* need to check readonly when loading file - into buffer (set by ":e", may be reset by - ":buf" */ -#define BF_NEVERLOADED 0x04 /* file has never been loaded into buffer, - many variables still need to be set */ -#define BF_NOTEDITED 0x08 /* Set when file name is changed after - starting to edit, reset when file is - written out. */ -#define BF_NEW 0x10 /* file didn't exist when editing started */ -#define BF_NEW_W 0x20 /* Warned for BF_NEW and file created */ -#define BF_READERR 0x40 /* got errors while reading the file */ -#define BF_DUMMY 0x80 /* dummy buffer, only used internally */ -#define BF_PRESERVED 0x100 /* ":preserve" was used */ - -/* Mask to check for flags that prevent normal writing */ -#define BF_WRITE_MASK (BF_NOTEDITED + BF_NEW + BF_READERR) /* * values for xp_context when doing command line completion |