diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-12-09 21:23:03 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2021-12-09 23:17:29 +0100 |
commit | d9c1669a5474ee0d09dbe60372a2959207187290 (patch) | |
tree | 2f2b3cf29f58c25bfe8e523cac394f8f225bbf52 /src/nvim/change.h | |
parent | 51822f065590154561a59435ca920207fd39bdda (diff) | |
download | rneovim-d9c1669a5474ee0d09dbe60372a2959207187290.tar.gz rneovim-d9c1669a5474ee0d09dbe60372a2959207187290.tar.bz2 rneovim-d9c1669a5474ee0d09dbe60372a2959207187290.zip |
refactor(misc1): move out misc functions which obviously belong elsewhere
Also make some function names more descriptive/regular.
Diffstat (limited to 'src/nvim/change.h')
-rw-r--r-- | src/nvim/change.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/change.h b/src/nvim/change.h index e1a1bfba17..e7c8a2b031 100644 --- a/src/nvim/change.h +++ b/src/nvim/change.h @@ -4,6 +4,13 @@ #include "nvim/buffer_defs.h" // for buf_T #include "nvim/pos.h" // for linenr_T +// flags for open_line() +#define OPENLINE_DELSPACES 1 // delete spaces after cursor +#define OPENLINE_DO_COM 2 // format comments +#define OPENLINE_KEEPTRAIL 4 // keep trailing spaces +#define OPENLINE_MARKFIX 8 // fix mark positions +#define OPENLINE_COM_LIST 16 // format comments with list/2nd line indent + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "change.h.generated.h" #endif |