diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-01-03 21:02:03 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-01-03 21:02:03 +0000 |
commit | d7ee7ce2318d5739a325dce2b86eb526d46015f4 (patch) | |
tree | aa51cd784c743659b19e1223649e0932b1f7533e /src/ops.c | |
parent | f9980f116b6081b0e9e90dac0c2db1c11509f40a (diff) | |
download | vim-git-d7ee7ce2318d5739a325dce2b86eb526d46015f4.tar.gz |
updated for version 7.0029
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -5149,7 +5149,13 @@ write_viminfo_registers(fp) 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. */ |