mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 01:02:09 +00:00

Problem: When 'formatoptions' contains "/" wrongly wrapping a long trailing
comment.
Solution: Pass the OPENLINE_FORMAT flag.
7e66778815
20 lines
630 B
C
20 lines
630 B
C
#ifndef NVIM_CHANGE_H
|
|
#define NVIM_CHANGE_H
|
|
|
|
#include "nvim/buffer_defs.h" // for buf_T
|
|
#include "nvim/pos.h" // for linenr_T
|
|
|
|
// flags for open_line()
|
|
#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
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "change.h.generated.h"
|
|
#endif
|
|
|
|
#endif // NVIM_CHANGE_H
|