diff options
| author | Max Hollmann <hollmmannm1@gmail.com> | 2020-07-15 07:53:13 +0000 |
|---|---|---|
| committer | Max Hollmann <hollmmannm1@gmail.com> | 2020-07-15 07:53:13 +0000 |
| commit | 54e2b0b005347810571a44b1ad64f9c14cf56e92 (patch) | |
| tree | 790a3f1a213a7feaa6216ff45f59084ac0b77059 | |
| parent | Revert "wiki: testing" (diff) | |
limit font size to non-negative values
| -rw-r--r-- | terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1430,7 +1430,7 @@ term_font_size_adjust(struct terminal *term, double amount) old_pt_size = term->font_sizes[i].px_size * 72. / dpi; } - term->font_sizes[i].pt_size = old_pt_size + amount; + term->font_sizes[i].pt_size = fmax(old_pt_size + amount, 0); term->font_sizes[i].px_size = -1; } |
