aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/indent.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-01 09:05:25 +0800
committerGitHub <noreply@github.com>2022-12-01 09:05:25 +0800
commitbd2d0edcbf4e98e05edff13f344865fcafac56b5 (patch)
tree13253884d9c197f8355227b8e248d5d3750bd73d /src/nvim/indent.c
parent282dda643ae598d5c8e9f34c379d931563b4891b (diff)
downloadrneovim-bd2d0edcbf4e98e05edff13f344865fcafac56b5.tar.gz
rneovim-bd2d0edcbf4e98e05edff13f344865fcafac56b5.tar.bz2
rneovim-bd2d0edcbf4e98e05edff13f344865fcafac56b5.zip
fix: clang warnings (#21247)
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r--src/nvim/indent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c
index bd91d1d4da..2777ebd18c 100644
--- a/src/nvim/indent.c
+++ b/src/nvim/indent.c
@@ -199,6 +199,7 @@ void tabstop_fromto(colnr_T start_col, colnr_T end_col, long ts_arg, const long
long padding = 0;
int t;
long ts = ts_arg == 0 ? curbuf->b_p_ts : ts_arg;
+ assert(ts != 0); // suppress clang "Division by zero"
if (vts == NULL || vts[0] == 0) {
int tabs = 0;