From 90e8c1a766ead465b07e4a9ed941245a21602f89 Mon Sep 17 00:00:00 2001 From: Kaushik Asp Date: Wed, 6 Mar 2019 04:12:54 +0530 Subject: [PATCH] Fix hanging when zoom out goes below 5px (#3509) Fixes #3498 --- lib/actions/ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/actions/ui.js b/lib/actions/ui.js index 6e3ac9e2..54f22b11 100644 --- a/lib/actions/ui.js +++ b/lib/actions/ui.js @@ -70,7 +70,8 @@ export function decreaseFontSize() { effect() { const state = getState(); const old = state.ui.fontSizeOverride || state.ui.fontSize; - const value = old - 1; + // when the font-size is really small, below 5px, xterm starts showing up issues. + const value = old > 5 ? old - 1 : old; dispatch({ type: UI_FONT_SIZE_SET, value