'everything' module:

- calc: default to truncate with scale=3, ignored when input begins with scale=X; 


SVN revision: 41353
devs/princeamd/enlightenment-0.17-elive
Hannes Janetzek 14 years ago
parent e1ce008a7e
commit 7cce1f09c2
  1. 6
      src/modules/everything/evry_plug_calc.c

@ -162,7 +162,11 @@ _fetch(Evry_Plugin *p, const char *input)
history = NULL;
}
snprintf(buf, 1024, "scale=3;%s\n", input + (strlen(p->trigger)));
if (!strncmp(input, "=scale=", 7))
snprintf(buf, 1024, "%s\n", input + (strlen(p->trigger)));
else
snprintf(buf, 1024, "scale=3;%s\n", input + (strlen(p->trigger)));
/* printf("send %s\n",buf); */

Loading…
Cancel
Save