summaryrefslogtreecommitdiff
path: root/src/option.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-17 19:41:21 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-17 19:41:21 +0200
commitaa0489e12d227d24752cf16e4e97058ac32edcc1 (patch)
treec7bffc6ea5b5cf2ec14e15c00c99e779d3f4f15f /src/option.h
parent0fc1288aefce25da0a2fb2a0aab75b0bd314403f (diff)
downloadvim-git-aa0489e12d227d24752cf16e4e97058ac32edcc1.tar.gz
patch 8.2.0590: no 'backspace' value allows ignoring the insertion pointv8.2.0590
Problem: No 'backspace' value allows ignoring the insertion point. Solution: Add the "nostop" and 3 values. (Christian Brabandt, closes #5940)
Diffstat (limited to 'src/option.h')
-rw-r--r--src/option.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/option.h b/src/option.h
index 52166cf2d..bead4c5bb 100644
--- a/src/option.h
+++ b/src/option.h
@@ -344,9 +344,14 @@
#define WIM_BUFLASTUSED 0x08
// arguments for can_bs()
+// each defined char should be unique over all values
+// except for BS_START, that intentionally also matches BS_NOSTOP
+// because BS_NOSTOP behaves exactly the same except it
+// does not stop at the start of the insert point
#define BS_INDENT 'i' // "Indent"
-#define BS_EOL 'o' // "eOl"
+#define BS_EOL 'l' // "eoL"
#define BS_START 's' // "Start"
+#define BS_NOSTOP 'p' // "nostoP
// flags for the 'culopt' option
#define CULOPT_LINE 0x01 // Highlight complete line