diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-11-11 21:48:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-11 21:48:14 +0100 |
commit | 122426966e1046f45801103eace2887ea59d4941 (patch) | |
tree | e3f113e8e91876e1746d723ac082a27355328404 /src/nvim/undo_defs.h | |
parent | 181486d7e614c1a417ec0f555cdfd25716cb5e38 (diff) | |
parent | 18a8b702c0ce7a8bacd84f6c95e440ae23a3299e (diff) | |
download | rneovim-122426966e1046f45801103eace2887ea59d4941.tar.gz rneovim-122426966e1046f45801103eace2887ea59d4941.tar.bz2 rneovim-122426966e1046f45801103eace2887ea59d4941.zip |
Merge pull request #11356 from bfredl/extmark2
extmark API feature
Diffstat (limited to 'src/nvim/undo_defs.h')
-rw-r--r-- | src/nvim/undo_defs.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/nvim/undo_defs.h b/src/nvim/undo_defs.h index 6c7e2bba41..0fa3b415ec 100644 --- a/src/nvim/undo_defs.h +++ b/src/nvim/undo_defs.h @@ -4,6 +4,7 @@ #include <time.h> // for time_t #include "nvim/pos.h" +#include "nvim/mark_extended_defs.h" #include "nvim/mark_defs.h" typedef struct u_header u_header_T; @@ -56,14 +57,15 @@ struct u_header { u_entry_T *uh_getbot_entry; /* pointer to where ue_bot must be set */ pos_T uh_cursor; /* cursor position before saving */ long uh_cursor_vcol; - int uh_flags; /* see below */ - fmark_T uh_namedm[NMARKS]; /* marks before undo/after redo */ - visualinfo_T uh_visual; /* Visual areas before undo/after redo */ - time_t uh_time; /* timestamp when the change was made */ - long uh_save_nr; /* set when the file was saved after the - changes in this block */ + int uh_flags; // see below + fmark_T uh_namedm[NMARKS]; // marks before undo/after redo + extmark_undo_vec_t uh_extmark; // info to move extmarks + visualinfo_T uh_visual; // Visual areas before undo/after redo + time_t uh_time; // timestamp when the change was made + long uh_save_nr; // set when the file was saved after the + // changes in this block #ifdef U_DEBUG - int uh_magic; /* magic number to check allocation */ + int uh_magic; // magic number to check allocation #endif }; |