diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-19 03:48:20 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-26 11:29:02 +0100 |
commit | fedb8443d58af82f7603164395ff253b94c913ae (patch) | |
tree | 81d71e8d779926db2954e2970c237759e242625e /src/nvim/buffer_defs.h | |
parent | 7ea81fe443369382b3ec8c9cfb5a80bcbcbe40bd (diff) | |
download | rneovim-fedb8443d58af82f7603164395ff253b94c913ae.tar.gz rneovim-fedb8443d58af82f7603164395ff253b94c913ae.tar.bz2 rneovim-fedb8443d58af82f7603164395ff253b94c913ae.zip |
terminal: Allow undo and 'modifiable'.
Partial step towards #2637. Will crash if *all* lines are deleted.
Closes #2607
References #5431
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 9c5c7859ff..154df0eff0 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -36,7 +36,7 @@ typedef struct { // for Map(K, V) #include "nvim/map.h" -#define MODIFIABLE(buf) (!buf->terminal && buf->b_p_ma) +#define MODIFIABLE(buf) (buf->b_p_ma) /* * Flags for w_valid. @@ -91,32 +91,22 @@ typedef struct frame_S frame_T; // for struct memline (it needs memfile_T) #include "nvim/memline_defs.h" - // for struct memfile, bhdr_T, blocknr_T... (it needs buf_T) #include "nvim/memfile_defs.h" -/* - * This is here because regexp_defs.h needs win_T and buf_T. regprog_T is - * used below. - */ +// for regprog_T. Needs win_T and buf_T. #include "nvim/regexp_defs.h" - -// for synstate_T (needs reg_extmatch_T, win_T and buf_T) +// for synstate_T (needs reg_extmatch_T, win_T, buf_T) #include "nvim/syntax_defs.h" - // for signlist_T #include "nvim/sign_defs.h" - // for bufhl_*_T #include "nvim/bufhl_defs.h" typedef Map(linenr_T, bufhl_vec_T) bufhl_info_T; -// for FileID -#include "nvim/os/fs_defs.h" - -// for Terminal -#include "nvim/terminal.h" +#include "nvim/os/fs_defs.h" // for FileID +#include "nvim/terminal.h" // for Terminal /* * The taggy struct is used to store the information about a :tag command. |