diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-01-20 19:29:12 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-01-20 19:36:35 +0100 |
commit | 48a869dc6d29514e943070da9f22f702f5179826 (patch) | |
tree | a419f94caa361cbc79480e3468fea437e710f312 /src/nvim/mark_extended.h | |
parent | 4d4035400ea9cc349fa77d5ac6128c9249c5cb7a (diff) | |
download | rneovim-48a869dc6d29514e943070da9f22f702f5179826.tar.gz rneovim-48a869dc6d29514e943070da9f22f702f5179826.tar.bz2 rneovim-48a869dc6d29514e943070da9f22f702f5179826.zip |
shed biking: it's always extmarks, never marks extended
Diffstat (limited to 'src/nvim/mark_extended.h')
-rw-r--r-- | src/nvim/mark_extended.h | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/src/nvim/mark_extended.h b/src/nvim/mark_extended.h deleted file mode 100644 index f809148d9b..0000000000 --- a/src/nvim/mark_extended.h +++ /dev/null @@ -1,93 +0,0 @@ -#ifndef NVIM_MARK_EXTENDED_H -#define NVIM_MARK_EXTENDED_H - -#include "nvim/buffer_defs.h" -#include "nvim/mark_extended_defs.h" -#include "nvim/marktree.h" - -EXTERN int extmark_splice_pending INIT(= 0); - -typedef struct -{ - uint64_t ns_id; - uint64_t mark_id; - int row; - colnr_T col; -} ExtmarkInfo; - -typedef kvec_t(ExtmarkInfo) ExtmarkArray; - - -// delete the columns between mincol and endcol -typedef struct { - int start_row; - colnr_T start_col; - int oldextent_row; - colnr_T oldextent_col; - int newextent_row; - colnr_T newextent_col; -} ExtmarkSplice; - -// adjust marks after :move operation -typedef struct { - int start_row; - int start_col; - int extent_row; - int extent_col; - int new_row; - int new_col; -} ExtmarkMove; - -// extmark was updated -typedef struct { - uint64_t mark; // raw mark id of the marktree - int old_row; - colnr_T old_col; - int row; - colnr_T col; -} ExtmarkSavePos; - -typedef enum { - kExtmarkSplice, - kExtmarkMove, - kExtmarkUpdate, - kExtmarkSavePos, - kExtmarkClear, -} UndoObjectType; - -// TODO(bfredl): reduce the number of undo action types -struct undo_object { - UndoObjectType type; - union { - ExtmarkSplice splice; - ExtmarkMove move; - ExtmarkSavePos savepos; - } data; -}; - - -typedef struct { - int start_row; - int start_col; - int end_row; - int end_col; - int attr_id; - VirtText *virt_text; -} HlRange; - -typedef struct { - MarkTreeIter itr[1]; - kvec_t(HlRange) active; - int top_row; - int row; - int col_until; - int current; - VirtText *virt_text; -} DecorationState; - - -#ifdef INCLUDE_GENERATED_DECLARATIONS -# include "mark_extended.h.generated.h" -#endif - -#endif // NVIM_MARK_EXTENDED_H |