forked from enlightenment/terminology
no more than 128k lines of scrollback
This commit is contained in:
parent
33c19c0bfb
commit
4617a8b6c3
|
@ -371,7 +371,7 @@ config_load(const char *key)
|
||||||
/*pass through*/
|
/*pass through*/
|
||||||
case 2:
|
case 2:
|
||||||
LIM(config->font.size, 3, 400);
|
LIM(config->font.size, 3, 400);
|
||||||
LIM(config->scrollback, 0, 524288);
|
LIM(config->scrollback, 0, 131072);
|
||||||
LIM(config->tab_zoom, 0.0, 1.0);
|
LIM(config->tab_zoom, 0.0, 1.0);
|
||||||
LIM(config->vidmod, 0, 3)
|
LIM(config->vidmod, 0, 3)
|
||||||
|
|
||||||
|
|
|
@ -186,8 +186,8 @@ sback_double_to_expo_int(double d)
|
||||||
{
|
{
|
||||||
if (d < 1.0)
|
if (d < 1.0)
|
||||||
return 0;
|
return 0;
|
||||||
if (d >= 19.0)
|
if (d >= 17.0)
|
||||||
d = 19.0;
|
d = 17.0;
|
||||||
return 1 << (unsigned char) d;
|
return 1 << (unsigned char) d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -555,7 +555,7 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
|
||||||
} u;
|
} u;
|
||||||
u.v = config->scrollback;
|
u.v = config->scrollback;
|
||||||
u.c = (u.c >> 23) - 127;
|
u.c = (u.c >> 23) - 127;
|
||||||
elm_slider_min_max_set(o, 0.0, 19.0);
|
elm_slider_min_max_set(o, 0.0, 17.0);
|
||||||
elm_slider_value_set(o, u.c);
|
elm_slider_value_set(o, u.c);
|
||||||
elm_box_pack_end(bx, o);
|
elm_box_pack_end(bx, o);
|
||||||
evas_object_show(o);
|
evas_object_show(o);
|
||||||
|
|
Loading…
Reference in New Issue