aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-05-25 20:31:14 +0200
committerGitHub <noreply@github.com>2022-05-25 12:31:14 -0600
commit9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e (patch)
tree83e044109d61242150b8c98897e179416025f576 /src/nvim/os
parent8c4e62351f67dd6a44f67f3a2b6f3a3551acf475 (diff)
downloadrneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.tar.gz
rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.tar.bz2
rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.zip
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/env.c2
-rw-r--r--src/nvim/os/fs.c2
-rw-r--r--src/nvim/os/input.c2
-rw-r--r--src/nvim/os/os_win_console.c1
-rw-r--r--src/nvim/os/time.c1
-rw-r--r--src/nvim/os/users.c1
6 files changed, 0 insertions, 9 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index c03fd60f03..4bc003bc7f 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -878,7 +878,6 @@ const void *vim_env_iter_rev(const char delim, const char *const val, const void
}
}
-
/// @param[out] exe_name should be at least MAXPATHL in size
void vim_get_prefix_from_exepath(char *exe_name)
{
@@ -1155,7 +1154,6 @@ char_u *home_replace_save(buf_T *buf, char_u *src) FUNC_ATTR_NONNULL_RET
return dst;
}
-
/// Function given to ExpandGeneric() to obtain an environment variable name.
char *get_env_name(expand_T *xp, int idx)
{
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index 5fcae79a67..68da53c476 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -56,7 +56,6 @@ static const int kLibuvSuccess = 0;
static uv_loop_t fs_loop;
static uv_mutex_t fs_loop_mutex;
-
// Initialize the fs module
void fs_init(void)
{
@@ -77,7 +76,6 @@ void fs_loop_unlock(void)
uv_mutex_unlock(&fs_loop_mutex);
}
-
/// Changes the current directory to `path`.
///
/// @return 0 on success, or negative error code.
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index ac21b32a3e..c47a891c18 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -216,7 +216,6 @@ void veryfast_breakcheck(void)
}
}
-
/// Test whether a file descriptor refers to a terminal.
///
/// @param fd File descriptor.
@@ -330,7 +329,6 @@ static uint8_t check_multiclick(int code, int grid, int row, int col)
return modifiers;
}
-
// Mouse event handling code(Extract row/col if available and detect multiple
// clicks)
static unsigned int handle_mouse_event(char **ptr, uint8_t *buf, unsigned int bufsize)
diff --git a/src/nvim/os/os_win_console.c b/src/nvim/os/os_win_console.c
index 18e2e02b81..20b7f869f1 100644
--- a/src/nvim/os/os_win_console.c
+++ b/src/nvim/os/os_win_console.c
@@ -9,7 +9,6 @@
# include "os/os_win_console.c.generated.h"
#endif
-
int os_get_conin_fd(void)
{
const HANDLE conin_handle = CreateFile("CONIN$",
diff --git a/src/nvim/os/time.c b/src/nvim/os/time.c
index d9f4fe9e37..396bf6986a 100644
--- a/src/nvim/os/time.c
+++ b/src/nvim/os/time.c
@@ -15,7 +15,6 @@
static uv_mutex_t delay_mutex;
static uv_cond_t delay_cond;
-
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "os/time.c.generated.h"
#endif
diff --git a/src/nvim/os/users.c b/src/nvim/os/users.c
index 3d67ae4ce0..9fe97dd5e4 100644
--- a/src/nvim/os/users.c
+++ b/src/nvim/os/users.c
@@ -160,7 +160,6 @@ char *os_get_user_directory(const char *name)
return NULL;
}
-
#if defined(EXITFREE)
void free_users(void)