Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
7e0c289e
Commit
7e0c289e
authored
Jan 10, 2011
by
hjk
Browse files
editormanager: fix handling of file names ending with + like foo.c++
Reviewed-by: Tobias Hunger
parent
187e4d68
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
7e0c289e
...
...
@@ -1187,8 +1187,10 @@ int extractLineNumber(QString *fileName)
return
-
1
;
if
(
fileName
->
at
(
i
)
==
':'
||
fileName
->
at
(
i
)
==
'+'
)
{
int
result
=
fileName
->
mid
(
i
+
1
).
toInt
();
*
fileName
=
fileName
->
left
(
i
);
return
result
;
if
(
result
)
{
*
fileName
=
fileName
->
left
(
i
);
return
result
;
}
}
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment