Commit 20acb9aa authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

lspclient: avoid not so useful mark for a single destination goto

parent e9a8969f
......@@ -1119,6 +1119,10 @@ public:
const auto &item = itemConverter(defs.at(0));
const auto &pos = item.range.start();
goToDocumentLocation(item.uri, pos.line(), pos.column());
// forego mark and such if only a single destination
if (defs.count() == 1) {
clearAllLocationMarks();
}
}
// update marks
updateState();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment