diff --git a/kate/chat_renderer.cpp b/kate/chat_renderer.cpp index aca83a4..6ebd773 100644 --- a/kate/chat_renderer.cpp +++ b/kate/chat_renderer.cpp @@ -354,7 +354,7 @@ QString ChatRenderer::subBlockToHtml(const SubBlock &sub, bool preserveWhitespac QStringLiteral(";padding:8px 12px;\">" "▶ diff ") + stats + - QStringLiteral("
" "↗ Open in Diff Viewer" ""); @@ -455,7 +455,7 @@ QString ChatRenderer::blockToHtml(const ChatBlock &block) const : QStringLiteral("✎ Apply to ") + escapeHtml(filePath.section('/', -1)); inner += QStringLiteral( "
" - "") + diff --git a/kate/ollie_kate.cpp b/kate/ollie_kate.cpp index 78bbb1d..07eee01 100644 --- a/kate/ollie_kate.cpp +++ b/kate/ollie_kate.cpp @@ -839,13 +839,13 @@ void OllieKateView::onAnchorClicked(const QUrl &url) { if (url.scheme() == QStringLiteral("ollie-diff")) { bool ok; - int index = url.host().toInt(&ok); + int index = url.path().mid(1).toInt(&ok); // path is "/N" if (ok) { showDiffBlock(index); } } else if (url.scheme() == QStringLiteral("ollie-apply")) { bool ok; - int index = url.host().toInt(&ok); + int index = url.path().mid(1).toInt(&ok); // path is "/N" if (ok) { applyCodeBlock(index); }