aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-02-04 01:29:04 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-02-04 01:29:04 +0100
commit34285cac1518491cf5240b90e0fd971a4a3d1dc5 (patch)
tree00c521445a9ea0eda0f110008bb8e542fcbcf997
parente8488f08bc6a8a44609783f1b1060ffd111ad4c7 (diff)
downloadmark-34285cac1518491cf5240b90e0fd971a4a3d1dc5.tar.gz
mark-34285cac1518491cf5240b90e0fd971a4a3d1dc5.zip
support both math buildins
-rw-r--r--mark.fish2
1 files changed, 1 insertions, 1 deletions
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 "<month>:"
- 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)