mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.5008: when 'formatoptions' contains "/" wrongly wrapping comment
Problem: When 'formatoptions' contains "/" wrongly wrapping a long trailing comment. Solution: Pass the OPENLINE_FORMAT flag.
This commit is contained in:
11
src/vim.h
11
src/vim.h
@@ -1118,11 +1118,12 @@ extern int (*dyn_libintl_wputenv)(const wchar_t *envstring);
|
||||
#define INSCHAR_COM_LIST 16 // format comments with list/2nd line indent
|
||||
|
||||
// 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
|
||||
#define OPENLINE_DELSPACES 0x01 // delete spaces after cursor
|
||||
#define OPENLINE_DO_COM 0x02 // format comments
|
||||
#define OPENLINE_KEEPTRAIL 0x04 // keep trailing spaces
|
||||
#define OPENLINE_MARKFIX 0x08 // fix mark positions
|
||||
#define OPENLINE_COM_LIST 0x10 // format comments with list/2nd line indent
|
||||
#define OPENLINE_FORMAT 0x20 // formatting long comment
|
||||
|
||||
// There are five history tables:
|
||||
#define HIST_CMD 0 // colon commands
|
||||
|
Reference in New Issue
Block a user