Using a command like 50G would correctly take you to line 50, but when in visual block mode in order to select a block ending on line 50, it would only select up to line 49 in that case. This checks for visual mode in the same fashion as line 513 of vintage.py and correctly selects the block based on being in visual mode or not.
Before:
Commands run: 179G, V, 190G
After:
Commands run: 179G, V, 191G <- different final command to account for the extra line added
Info:
Dev Channel Build, 3142
macOS 10.12.6 Sierra
Using a command like
50G
would correctly take you to line 50, but when in visual block mode in order to select a block ending on line 50, it would only select up to line 49 in that case. This checks for visual mode in the same fashion as line 513 ofvintage.py
and correctly selects the block based on being in visual mode or not.Before: Commands run:
179G
,V
,190G
After: Commands run:
179G
,V
,191G
<- different final command to account for the extra line addedInfo: Dev Channel Build, 3142 macOS 10.12.6 Sierra