This patch utilizes the '>' symbol to obtain the end column position of a selection. This capability enables the updating of positions in visual selections after adding or removing a surround, thus facilitating the reselection of the region using the gv command.
The commit c141afd96ed66e751b94379ccb1a7941607800ae addresses an issue in the original code where the surround in the V-LINE selection was not correctly positioned. It also fixes an error that was introduced when using the gv command for re-selecting the surround that was added in V-LINE.
This patch utilizes the
'>'
symbol to obtain the end column position of a selection. This capability enables the updating of positions in visual selections after adding or removing a surround, thus facilitating the reselection of the region using thegv
command.Before
https://user-images.githubusercontent.com/24286590/213634087-0c777627-5e49-41e2-b76e-b66a099268dd.mp4
After
https://user-images.githubusercontent.com/24286590/213634116-852dd159-1276-4254-a4b6-4b60451e4736.mp4
[Update]
The commit c141afd96ed66e751b94379ccb1a7941607800ae addresses an issue in the original code where the surround in the
V-LINE
selection was not correctly positioned. It also fixes an error that was introduced when using thegv
command for re-selecting the surround that was added inV-LINE
.