aboutsummaryrefslogtreecommitdiff
path: root/mark.fish
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-02-03 21:43:26 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-02-03 21:43:26 +0100
commite8488f08bc6a8a44609783f1b1060ffd111ad4c7 (patch)
tree8457eaf667d1ab0e8b6ec465b8eebdbee2ce755f /mark.fish
parent933b3ebd0a8bd3adfa32065fafbadc65cab1a7d9 (diff)
downloadmark-e8488f08bc6a8a44609783f1b1060ffd111ad4c7.tar.gz
mark-e8488f08bc6a8a44609783f1b1060ffd111ad4c7.zip
fix mark set for fish 3.0.0
the new math build in returns floats
Diffstat (limited to 'mark.fish')
-rw-r--r--mark.fish2
1 files changed, 1 insertions, 1 deletions
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 "<month>:"
- 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)