diff options
author | James McCoy <jamessan@jamessan.com> | 2022-01-13 21:43:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 21:43:58 -0500 |
commit | a88046fe2d0710d1d1132ea544e9dbbbac1af7de (patch) | |
tree | 2cf2f5bb7ba1e498f91f1eeb13c3ada821d97776 /src/nvim/ops.c | |
parent | 9b04336445c85b5bc4920d18072066e8ad01d6af (diff) | |
parent | e1b557d9130c94f72c2d836bf814a884c470809f (diff) | |
download | rneovim-a88046fe2d0710d1d1132ea544e9dbbbac1af7de.tar.gz rneovim-a88046fe2d0710d1d1132ea544e9dbbbac1af7de.tar.bz2 rneovim-a88046fe2d0710d1d1132ea544e9dbbbac1af7de.zip |
Merge pull request #17086 from zeertzjq/vim-8.1.2375
vim-patch:8.1.2375: no suffucient testing for registers
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 013a78bdac..1a12cb636a 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -3154,11 +3154,12 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags) if (ve_flags == VE_ALL && y_type == kMTCharWise) { if (gchar_cursor() == TAB) { - /* Don't need to insert spaces when "p" on the last position of a - * tab or "P" on the first position. */ int viscol = getviscol(); + long ts = curbuf->b_p_ts; + // Don't need to insert spaces when "p" on the last position of a + // tab or "P" on the first position. if (dir == FORWARD - ? tabstop_padding(viscol, curbuf->b_p_ts, curbuf->b_p_vts_array) != 1 + ? tabstop_padding(viscol, ts, curbuf->b_p_vts_array) != 1 : curwin->w_cursor.coladd > 0) { coladvance_force(viscol); } else { |