From 34285cac1518491cf5240b90e0fd971a4a3d1dc5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 4 Feb 2019 01:29:04 +0100 Subject: support both math buildins --- mark.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mark.fish b/mark.fish index 8c06509..6369824 100644 --- a/mark.fish +++ b/mark.fish @@ -189,7 +189,7 @@ function __mark_set --description 'mark a day in a store' \ -a store year month day sign force # calculate offset: $day+1 (+1 if m > 9) because of ":" - set offset (math "floor($day + 1 + $month/10)") + set offset (math -s0 "$day + 1 + $month/10") set marks (__mark_print_block store $store) set marks (string split " " $marks) -- cgit v1.2.3