Browse Source

Fixes commit message truncation

main
Eric Amodio 2 years ago
parent
commit
1221e5066a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/webviews/apps/commitDetails/commitDetails.ts

+ 1
- 1
src/webviews/apps/commitDetails/commitDetails.ts View 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>`;

Loading…
Cancel
Save