diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-12-03 21:07:17 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-12-03 21:07:17 +0000 |
commit | 34381548da094d1be0b06f802d131f960b061ffe (patch) | |
tree | 5a3b835aa9ac335f190ac430ebd00a86cd9f19e4 /Src/zsh.h | |
parent | ac05bc6e026aebc0fa40ec942501026ebd489919 (diff) | |
download | zsh-34381548da094d1be0b06f802d131f960b061ffe.tar.gz zsh-34381548da094d1be0b06f802d131f960b061ffe.tar.xz zsh-34381548da094d1be0b06f802d131f960b061ffe.zip |
Incomplete improvements for $'...' in completion
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 1c693fef4..89482e514 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1910,7 +1910,10 @@ struct heap { /****************/ #ifdef DEBUG -# define DPUTS(X,Y) if (!(X)) {;} else dputs(Y) +#define STRINGIFY_LITERAL(x) # x +#define STRINGIFY(x) STRINGIFY_LITERAL(x) +#define ERRMSG(x) (__FILE__ ":" STRINGIFY(__LINE__) ": " x) +# define DPUTS(X,Y) if (!(X)) {;} else dputs(ERRMSG(Y)) #else # define DPUTS(X,Y) #endif @@ -1971,7 +1974,13 @@ enum { /* Handle \- (uses misc arg to getkeystring()) */ GETKEY_BACKSLASH_MINUS = (1 << 5), /* Parse only one character (len arg to getkeystring() not used) */ - GETKEY_SINGLE_CHAR = (1 << 6) + GETKEY_SINGLE_CHAR = (1 << 6), + /* + * If beyond offset in misc arg, add 1 to it for each character removed. + * Yes, I know that doesn't seem to make much sense. + * It's for use in completion, comprenez? + */ + GETKEY_UPDATE_OFFSET = (1 << 7) }; /* |