Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/ycm/tests/command_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_SendCommandRequest_BuildRange_NoVisualMarks( self, ycm, *args ):
},
'end': {
'line_num': 2,
'column_num': 12
'column_num': 13
}
}
},
Expand Down Expand Up @@ -132,7 +132,7 @@ def test_SendCommandRequest_BuildRange_VisualMarks( self, ycm, *args ):
},
'end': {
'line_num': 2,
'column_num': 9
'column_num': 10
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion python/ycm/vimsupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ def BuildRange( start_line, end_line ):
# Vim returns the maximum 32-bit integer value when a whole line is
# selected. Use the end of line instead.
'column_num': min( end[ 1 ],
len( vim.current.buffer[ end[ 0 ] - 1 ] ) ) + 1
len( vim.current.buffer[ end[ 0 ] - 1 ] ) ) + 2
}
}
}
Expand Down