UIDiffView: Added Reduced / Complete toggle. Added LCS support. A lot of extra improvements.

This commit is contained in:
Martín Lucas Golini
2026-03-24 18:50:54 -03:00
parent 2d536772ba
commit d38415f335
5 changed files with 353 additions and 116 deletions

View File

@@ -2623,7 +2623,7 @@ void App::loadDiffFromMemory( const std::string& content, const std::string& ori
icon = getUISceneNode()->findIcon( "file" );
if ( icon )
tab->setIcon( icon->getSize( getMenuIconSize() ) );
diffView->loadFromPatch( content );
diffView->loadFromPatch( content, originalFilePath );
}
void App::loadDiffFromPath( const std::string& path ) {
@@ -2641,7 +2641,7 @@ void App::loadDiffFromPath( const std::string& path ) {
tab->setIcon( icon ? icon : findIcon( "file" ) );
std::string text;
if ( FileSystem::fileGet( path, text ) )
diffView->loadFromPatch( text );
diffView->loadFromPatch( text, path );
}
void App::openFileFromPath( const std::string& path ) {