diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-10-23 13:05:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 13:05:19 -0400 |
commit | bb9e6a15834dcab2cb58afe22fedd0a4d818d9a8 (patch) | |
tree | 0367fad361ebed9832d7d9bd9018dff1a670dc39 /src/nvim/edit.c | |
parent | fa4b24072e13dc7303e896701f0bb6d0227caf0c (diff) | |
parent | e59c0009a76cee92bedf72fbd1db04e4a16ed24b (diff) | |
download | rneovim-bb9e6a15834dcab2cb58afe22fedd0a4d818d9a8.tar.gz rneovim-bb9e6a15834dcab2cb58afe22fedd0a4d818d9a8.tar.bz2 rneovim-bb9e6a15834dcab2cb58afe22fedd0a4d818d9a8.zip |
Merge pull request #16111 from dundargoc/vim-patch/comments
vim-patch:8.1.2368,8.1.2378,8.1.2379,8.1.2380,8.1.2387,8.1.2388,8.1.2392,8.1.2394,8.1.2395,8.1.2396
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index b3a08971e9..0cfda53091 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -523,7 +523,7 @@ static int insert_check(VimState *state) did_cursorhold = false; } - // If the cursor was moved we didn't just insert a space */ + // If the cursor was moved we didn't just insert a space if (arrow_used) { s->inserted_space = false; } @@ -835,7 +835,7 @@ static int insert_handle_key(InsertState *s) case Ctrl_C: // End input mode if (s->c == Ctrl_C && cmdwin_type != 0) { - // Close the cmdline window. */ + // Close the cmdline window. cmdwin_result = K_IGNORE; got_int = false; // don't stop executing autocommands et al s->nomove = true; @@ -6346,8 +6346,8 @@ void auto_format(bool trailblank, bool prev_line) curwin->w_cursor = pos; } - /* With the 'c' flag in 'formatoptions' and 't' missing: only format - * comments. */ + // With the 'c' flag in 'formatoptions' and 't' missing: only format + // comments. if (has_format_option(FO_WRAP_COMS) && !has_format_option(FO_WRAP) && get_leader_len(old, NULL, false, true) == 0) { return; |