aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/textformat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/textformat.c')
-rw-r--r--src/nvim/textformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/textformat.c b/src/nvim/textformat.c
index 13607da043..96907362dd 100644
--- a/src/nvim/textformat.c
+++ b/src/nvim/textformat.c
@@ -869,7 +869,7 @@ int fex_format(linenr_T lnum, long count, int c)
if (use_sandbox) {
sandbox++;
}
- int r = (int)eval_to_number(fex);
+ int r = (int)eval_to_number(fex, true);
if (use_sandbox) {
sandbox--;
}