patch 8.2.2971: cannot yank a block without trailing spaces
Problem: Cannot yank a block without trailing spaces.
Solution: Add the "zy" command. (Christian Brabandt, closes #8292)
diff --git a/src/structs.h b/src/structs.h
index 10f1025..26ab315 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -3772,7 +3772,7 @@
int use_reg_one; // TRUE if delete uses reg 1 even when not
// linewise
int inclusive; // TRUE if char motion is inclusive (only
- // valid when motion_type is MCHAR
+ // valid when motion_type is MCHAR)
int end_adjusted; // backuped b_op_end one char (only used by
// do_format())
pos_T start; // start of the operator
@@ -3789,6 +3789,8 @@
colnr_T end_vcol; // end col for block mode operator
long prev_opcount; // ca.opcount saved for K_CURSORHOLD
long prev_count0; // ca.count0 saved for K_CURSORHOLD
+ int excl_tr_ws; // exclude trailing whitespace for yank of a
+ // block
} oparg_T;
/*