aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2018-01-31 03:29:15 +0800
committerJustin M. Keyes <justinkz@gmail.com>2018-01-30 20:29:15 +0100
commit8728a5d50bc3339db81c7f29d59c55f9f817f06c (patch)
treee5ecd3e8bc2310d35889731dacf2cbcab38887dd /src/nvim/edit.c
parent2a1a624878ec70caf1e61b7440a6b9e4dce6c36f (diff)
downloadrneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.tar.gz
rneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.tar.bz2
rneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.zip
vim-patch:8.0.0448: some macros are lower case (#7936)
Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case. https://github.com/vim/vim/commit/b5aedf3e228d35821591da9ae8501b61cf2e264c ref #6297
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 649357c7ea..c35f7d1858 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -7473,13 +7473,11 @@ static bool ins_bs(int c, int mode, int *inserted_space_p)
int oldState;
int cpc[MAX_MCO]; /* composing characters */
- /*
- * can't delete anything in an empty file
- * can't backup past first character in buffer
- * can't backup past starting point unless 'backspace' > 1
- * can backup to a previous line if 'backspace' == 0
- */
- if (bufempty()
+ // can't delete anything in an empty file
+ // can't backup past first character in buffer
+ // can't backup past starting point unless 'backspace' > 1
+ // can backup to a previous line if 'backspace' == 0
+ if (BUFEMPTY()
|| (!revins_on
&& ((curwin->w_cursor.lnum == 1 && curwin->w_cursor.col == 0)
|| (!can_bs(BS_START)