Skip to content

Commit 7591bba

Browse files
committed
Line count must start from 1
1 parent bada644 commit 7591bba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeCompletion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class CustomCodeCompleteConsumer : public CodeCompleteConsumer {
8989
};
9090

9191
int FindRealLineForCodeCompletion(string &code, string &filename, int line) {
92-
int curr = 0;
93-
int real = 0;
92+
int curr = 1;
93+
int real = 1;
9494
bool inFile = false;
9595
for (string &l : split(code, '\n')) {
9696
real++;

0 commit comments

Comments
 (0)