aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnout Engelen <arnouten@bzzt.net>2016-05-26 17:57:46 +0200
committerArnout Engelen <arnouten@bzzt.net>2016-05-26 17:57:46 +0200
commit4e5a07e795517b02d38dd274ac207b63c45d3736 (patch)
tree67a739488c59fe69a252fbf96c923b002ba11009
parentkeybindings: fix binding to close focused term (diff)
downloadterminology-4e5a07e795517b02d38dd274ac207b63c45d3736.tar.gz
Check if the font size really needs to be changed
Changing the font size also causes the current selection to be lost, so it's nice to avoid it when not needed.
-rw-r--r--src/bin/termio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 307a9f5..77100bc 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -450,7 +450,7 @@ _font_size_set(Evas_Object *obj, int size)
if (size < 5) size = 5;
else if (size > 100) size = 100;
- if (config)
+ if (config && config->font.size != size)
{
config->temporary = EINA_TRUE;
config->font.size = size;