commit | d7ee7ce2318d5739a325dce2b86eb526d46015f4 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jan 03 21:02:03 2005 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jan 03 21:02:03 2005 +0000 |
tree | aa51cd784c743659b19e1223649e0932b1f7533e | |
parent | f9980f116b6081b0e9e90dac0c2db1c11509f40a [diff] [blame] |
updated for version 7.0029
diff --git a/src/ops.c b/src/ops.c index b17effe..ddc0aab 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -5149,7 +5149,13 @@ if (i == TILDE_REGISTER) continue; #endif + /* Skip empty registers. */ num_lines = y_regs[i].y_size; + if (num_lines == 0 + || (num_lines == 1 && y_regs[i].y_type == MCHAR + && STRLEN(y_regs[i].y_array[0]) == 0)) + continue; + if (max_kbyte > 0) { /* Skip register if there is more text than the maximum size. */