From 0e770816a77823feb3ebe44d6da7a87f48830c6e Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 21 Aug 2018 19:09:00 -0400 Subject: [PATCH] Fixes #482 - UI displays "undefined" in results panel when comparing --- CHANGELOG.md | 1 + src/system/string.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26bc080..7ed50d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] ### Fixed - Fixes [#477](https://github.com/eamodio/vscode-gitlens/issues/477) - Can't load any GitLens features or UI +- Fixes [#482](https://github.com/eamodio/vscode-gitlens/issues/482) - UI displays "undefined" in results panel when comparing ## [8.5.5] - 2018-08-18 ### Added diff --git a/src/system/string.ts b/src/system/string.ts index d5c9dbf..bbafc40 100644 --- a/src/system/string.ts +++ b/src/system/string.ts @@ -116,7 +116,7 @@ export namespace Strings { if (options === undefined) return `${count} ${s}${count === 1 ? '' : 's'}`; return `${count === 0 ? options.zero || count : options.number || count} ${ - count === 1 ? s : options.plural || `${s}${options.suffix}` + count === 1 ? s : options.plural || `${s}${options.suffix || 's'}` }`; }