Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
053a07ca
Commit
053a07ca
authored
Mar 03, 2021
by
Ahmad Samir
Committed by
Kurt Hindenburg
Apr 16, 2021
Browse files
FileFilter: match filename:lineNumber in current dir
parent
c66d1139
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/filterHotSpots/FileFilter.cpp
View file @
053a07ca
...
...
@@ -106,8 +106,9 @@ QSharedPointer<HotSpot> FileFilter::newHotSpot(int startLine, int startColumn, i
if
(
!
absolute
)
{
auto
match
=
std
::
find_if
(
_currentDirContents
.
cbegin
(),
_currentDirContents
.
cend
(),
[
&
filename
](
const
QString
&
s
)
{
return
filename
==
s
||
// It's a direct child file or dir
filename
.
startsWith
(
s
+
QLatin1Char
{
'/'
});
// It's inside a child dir
return
filename
==
s
// It's a direct child file or dir
||
filename
.
startsWith
(
s
+
QLatin1Char
{
':'
})
// filename:lineNumber (output of grep -n)
||
filename
.
startsWith
(
s
+
QLatin1Char
{
'/'
});
// It's inside a child dir
});
if
(
match
==
_currentDirContents
.
cend
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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