diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-06-01 21:46:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-06-01 21:46:07 +0000 |
commit | 2c29beed4c2a40662ef859f4f5c9aed045d5a0d6 (patch) | |
tree | 901a25b13f1e02e6ed4a76999f6e688deb3410f6 | |
parent | 0cde9404756e3effb240a3ca57269ebf0d6a09c4 (diff) | |
download | vim-git-2c29beed4c2a40662ef859f4f5c9aed045d5a0d6.tar.gz |
updated for version 7.0078
-rw-r--r-- | src/ex_docmd.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 8cbec380e..503be3fec 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -39,7 +39,7 @@ typedef struct ucmd #define UC_BUFFER 1 /* -buffer: local to current buffer */ -garray_T ucmds = {0, 0, sizeof(ucmd_T), 4, NULL}; +static garray_T ucmds = {0, 0, sizeof(ucmd_T), 4, NULL}; #define USER_CMD(i) (&((ucmd_T *)(ucmds.ga_data))[i]) #define USER_CMD_GA(gap, i) (&((ucmd_T *)((gap)->ga_data))[i]) @@ -452,7 +452,7 @@ static void ex_folddo __ARGS((exarg_T *eap)); /* * Table used to quickly search for a command, based on its first character. */ -cmdidx_T cmdidxs[27] = +static cmdidx_T cmdidxs[27] = { CMD_append, CMD_buffer, @@ -7812,12 +7812,16 @@ ex_redir(eap) redir_reg = *arg++; if (*arg == '>' && arg[1] == '>') arg += 2; - else if (*arg == NUL && (islower(redir_reg) + else if ((*arg == NUL || (*arg == '>' && arg[1] == NUL)) && + (islower(redir_reg) # ifdef FEAT_CLIPBOARD || redir_reg == '*' # endif || redir_reg == '"')) { + if (*arg == '>') + arg++; + /* make register empty */ write_reg_contents(redir_reg, (char_u *)"", -1, FALSE); } |