mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-14 15:02:50 +03:00
Invalidate draw when editor updates its highlight.
Minor improvement on breadcrumb draw invalidation.
This commit is contained in:
@@ -2006,7 +2006,7 @@ void LSPClientPlugin::updateCurrentSymbol( TextDocument& doc ) {
|
||||
if ( prevSymbols == mDocCurrentSymbols.end() || prevSymbols->second != symbolsInfo ) {
|
||||
mDocCurrentSymbols[uri] = std::move( symbolsInfo );
|
||||
getManager()->getSplitter()->forEachEditor( [&uri]( UICodeEditor* editor ) {
|
||||
if ( editor->getDocument().getURI() == uri )
|
||||
if ( editor->isVisible() && editor->getDocument().getURI() == uri )
|
||||
editor->invalidateDraw();
|
||||
} );
|
||||
}
|
||||
@@ -2054,7 +2054,7 @@ void LSPClientPlugin::showDocumentSymbols( UICodeEditor* editor ) {
|
||||
std::vector<std::string> path;
|
||||
for ( const auto& sym : docSymbols )
|
||||
path.emplace_back( sym.name );
|
||||
tv->selectRowWithPath( String::join( path, '/' ) );
|
||||
tv->selectRowWithPath( path );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user