Terminal: Open Link with line/column info

Change-Id: I3e70a7c33a935b7bd3e12fb903148bcd60ff55aa
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-03-06 12:25:26 +01:00
parent 7a2bd0898d
commit 665ae04605
4 changed files with 43 additions and 13 deletions

View File

@@ -5,6 +5,7 @@
#include "terminalsurface.h"
#include <utils/link.h>
#include <utils/qtcprocess.h>
#include <utils/terminalhooks.h>
@@ -59,11 +60,11 @@ public:
struct LinkSelection : public Selection
{
Utils::FilePath filePath;
Utils::Link link;
bool operator!=(const LinkSelection &other) const
{
return filePath != other.filePath || Selection::operator!=(other);
return link != other.link || Selection::operator!=(other);
}
};