mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
refactor: format with uncrustify #15726
This commit is contained in:
@@ -6,26 +6,26 @@
|
||||
/// code for digraphs
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/ascii.h"
|
||||
#include "nvim/digraph.h"
|
||||
#include "nvim/charset.h"
|
||||
#include "nvim/digraph.h"
|
||||
#include "nvim/ex_cmds2.h"
|
||||
#include "nvim/ex_docmd.h"
|
||||
#include "nvim/ex_getln.h"
|
||||
#include "nvim/getchar.h"
|
||||
#include "nvim/misc1.h"
|
||||
#include "nvim/mbyte.h"
|
||||
#include "nvim/message.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/garray.h"
|
||||
#include "nvim/getchar.h"
|
||||
#include "nvim/mbyte.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/message.h"
|
||||
#include "nvim/misc1.h"
|
||||
#include "nvim/normal.h"
|
||||
#include "nvim/os/input.h"
|
||||
#include "nvim/screen.h"
|
||||
#include "nvim/strings.h"
|
||||
#include "nvim/os/input.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
typedef int result_T;
|
||||
|
||||
@@ -40,7 +40,7 @@ typedef struct digraph {
|
||||
# include "digraph.c.generated.h"
|
||||
#endif
|
||||
// digraphs added by the user
|
||||
static garray_T user_digraphs = {0, 0, (int)sizeof(digr_T), 10, NULL};
|
||||
static garray_T user_digraphs = { 0, 0, (int)sizeof(digr_T), 10, NULL };
|
||||
|
||||
/// Note: Characters marked with XX are not included literally, because some
|
||||
/// compilers cannot handle them (Amiga SAS/C is the most picky one).
|
||||
@@ -49,7 +49,7 @@ static digr_T digraphdefault[] =
|
||||
// digraphs for Unicode from RFC1345
|
||||
// (also work for ISO-8859-1 aka latin1)
|
||||
{
|
||||
{ 'N', 'U', 0x0a }, // LF for NUL
|
||||
{ 'N', 'U', 0x0a }, // LF for NUL
|
||||
{ 'S', 'H', 0x01 },
|
||||
{ 'S', 'X', 0x02 },
|
||||
{ 'E', 'X', 0x03 },
|
||||
@@ -1452,12 +1452,12 @@ static digr_T digraphdefault[] =
|
||||
/// @return The digraph.
|
||||
int do_digraph(int c)
|
||||
{
|
||||
static int backspaced; // character before K_BS
|
||||
static int backspaced; // character before K_BS
|
||||
static int lastchar; // last typed character
|
||||
|
||||
if (c == -1) { // init values
|
||||
backspaced = -1;
|
||||
} else if (p_dg) {
|
||||
} else if (p_dg) {
|
||||
if (backspaced >= 0) {
|
||||
c = getdigraph(backspaced, c, false);
|
||||
}
|
||||
@@ -1557,7 +1557,7 @@ static int getexactdigraph(int char1, int char2, bool meta_char)
|
||||
// Search user digraphs first.
|
||||
digr_T *dp = (digr_T *)user_digraphs.ga_data;
|
||||
for (int i = 0; i < user_digraphs.ga_len; ++i) {
|
||||
if (((int) dp->char1 == char1) && ((int) dp->char2 == char2)) {
|
||||
if (((int)dp->char1 == char1) && ((int)dp->char2 == char2)) {
|
||||
retval = dp->result;
|
||||
break;
|
||||
}
|
||||
@@ -1569,7 +1569,7 @@ static int getexactdigraph(int char1, int char2, bool meta_char)
|
||||
dp = digraphdefault;
|
||||
|
||||
for (int i = 0; dp->char1 != 0; ++i) {
|
||||
if (((int) dp->char1 == char1) && ((int) dp->char2 == char2)) {
|
||||
if (((int)dp->char1 == char1) && ((int)dp->char2 == char2)) {
|
||||
retval = dp->result;
|
||||
break;
|
||||
}
|
||||
@@ -1821,7 +1821,7 @@ typedef struct {
|
||||
/// @return NULL if OK, an error message for failure. This only needs to be
|
||||
/// used when setting the option, not later when the value has already
|
||||
/// been checked.
|
||||
char_u* keymap_init(void)
|
||||
char_u * keymap_init(void)
|
||||
{
|
||||
curbuf->b_kmap_state &= ~KEYMAP_INIT;
|
||||
|
||||
|
Reference in New Issue
Block a user