diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-09-25 23:38:39 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-09-25 23:38:41 +0000 |
commit | 8165b488cb223ac58629d99f8df1bda930dd29c0 (patch) | |
tree | e06d39a06f95308a602a6b7834441aa63a3e9d2d | |
parent | 61fa5f66f05c85e290d50df860708e80221011c9 (diff) | |
download | zsh-8165b488cb223ac58629d99f8df1bda930dd29c0.tar.gz zsh-8165b488cb223ac58629d99f8df1bda930dd29c0.tar.xz zsh-8165b488cb223ac58629d99f8df1bda930dd29c0.zip |
unposted: zle: Document the C helper function processcmd().
Also, tweak the docstring of zlelineasstring().
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/zle_tricky.c | 3 | ||||
-rw-r--r-- | Src/Zle/zle_utils.c | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 71788378d..fbd7c3a00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-09-25 Daniel Shahaf <d.s@daniel.shahaf.name> + + * unposted: Src/Zle/zle_tricky.c Src/Zle/zle_utils.c: zle: + Document the C helper function processcmd(). + 2015-09-25 Christoph Mathys <eraserix@gmail.com> * 36626: Completion/Unix/Command/_hg: _hg: completion for diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index b1a6f9e7e..e26f66379 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -2952,6 +2952,9 @@ getcurcmd(void) return s; } +/* Run '$WIDGET $commandword' and then restore the command-line using push-line. + */ + /**/ int processcmd(UNUSED(char **args)) diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index 9751f7a1f..714d911a6 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -166,13 +166,13 @@ zlecharasstring(ZLE_CHAR_T inchar, char *buf) } /* - * Input a line in internal zle format, possibly using wide characters, + * Input: a line in internal zle format, possibly using wide characters, * possibly not, together with its length and the cursor position. * The length must be accurate and includes all characters (no NULL * termination is expected). The input cursor position is only * significant if outcs is non-NULL. * - * Output an ordinary NULL-terminated string, using multibyte characters + * Output: an ordinary NULL-terminated string, using multibyte characters * instead of wide characters where appropriate and with the contents * metafied. * |