Sfoglia il codice sorgente

Fixes commit message truncation

main
Eric Amodio 2 anni fa
parent
commit
1221e5066a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/webviews/apps/commitDetails/commitDetails.ts

+ 1
- 1
src/webviews/apps/commitDetails/commitDetails.ts Vedi File

@ -495,7 +495,7 @@ export class CommitDetailsApp extends App> {
}
const [headline, ...lines] = state.selected.message.split('\n');
if (lines.length > 1) {
if (lines.length > 0) {
$el.innerHTML = `<strong>${headline}</strong><br>${lines.join('<br>')}`;
} else {
$el.innerHTML = `<strong>${headline}</strong>`;

Caricamento…
Annulla
Salva