about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2006-10-16 01:09:22 +0000
committerBart Schaefer <barts@users.sourceforge.net>2006-10-16 01:09:22 +0000
commitd6a7f6f5ad9c0546aa47a5bfc54d9935da73ff02 (patch)
tree870284c776b71a6f0695589ffdeb29a29281c172 /Src
parent9f392b5a54c418d56972b5f2f9032942312c73e4 (diff)
downloadzsh-d6a7f6f5ad9c0546aa47a5bfc54d9935da73ff02.tar.gz
zsh-d6a7f6f5ad9c0546aa47a5bfc54d9935da73ff02.tar.xz
zsh-d6a7f6f5ad9c0546aa47a5bfc54d9935da73ff02.zip
Add two widges for user control of auto-suffix remove/keep.
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/iwidgets.list2
-rw-r--r--Src/Zle/zle_utils.c9
2 files changed, 11 insertions, 0 deletions
diff --git a/Src/Zle/iwidgets.list b/Src/Zle/iwidgets.list
index 5be5a474f..58225a47b 100644
--- a/Src/Zle/iwidgets.list
+++ b/Src/Zle/iwidgets.list
@@ -14,6 +14,8 @@
 "accept-line", acceptline, 0
 "accept-line-and-down-history", acceptlineanddownhistory, 0
 "argument-base", argumentbase, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL | ZLE_NOTCOMMAND
+"auto-suffix-remove", handlesuffix, ZLE_NOTCOMMAND
+"auto-suffix-retain", handlesuffix, ZLE_KEEPSUFFIX | ZLE_NOTCOMMAND
 "backward-char", backwardchar, 0
 "backward-delete-char", backwarddeletechar, ZLE_KEEPSUFFIX
 "backward-delete-word", backwarddeleteword, ZLE_KEEPSUFFIX
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index 6275e74d3..67c7379f5 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -865,6 +865,15 @@ handlefeep(UNUSED(char **args))
     return 0;
 }
 
+/* user control of auto-suffixes -- see iwidgets.list */
+
+/**/
+int
+handlesuffix(UNUSED(char **args))
+{
+  return 0;
+}
+
 /***************/
 /* undo system */
 /***************/