From e8488f08bc6a8a44609783f1b1060ffd111ad4c7 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 3 Feb 2019 21:43:26 +0100 Subject: fix mark set for fish 3.0.0 the new math build in returns floats --- mark.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mark.fish b/mark.fish index 086dc58..8c06509 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 "($day + 1 + $month/10)") + set offset (math "floor($day + 1 + $month/10)") set marks (__mark_print_block store $store) set marks (string split " " $marks) -- cgit v1.2.3