Fix hanging when zoom out goes below 5px (#3509)

Fixes #3498
This commit is contained in:
Kaushik Asp 2019-03-06 04:12:54 +05:30 committed by CHaBou
parent d0f03f52e5
commit 90e8c1a766

View file

@ -70,7 +70,8 @@ export function decreaseFontSize() {
effect() { effect() {
const state = getState(); const state = getState();
const old = state.ui.fontSizeOverride || state.ui.fontSize; 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({ dispatch({
type: UI_FONT_SIZE_SET, type: UI_FONT_SIZE_SET,
value value