Skip to content

Commit b612242

Browse files
authored
Merge branch 'master' into new_java
2 parents 7df0818 + 5ab37ab commit b612242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ycmd/completers/cs/cs_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ def _BuildLocation( request_data, filename, line_num, column_num ):
903903
if column_num <= 0:
904904
column_num = 1
905905
contents = GetFileLines( request_data, filename )
906-
line_value = contents[ min( len( contents ), line_num - 1 ) ]
906+
line_value = contents[ min( len( contents ) - 1, line_num - 1 ) ]
907907
return responses.Location(
908908
line_num,
909909
CodepointOffsetToByteOffset( line_value, column_num ),

0 commit comments

Comments
 (0)