aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/indent.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-22 09:14:42 +0800
committerGitHub <noreply@github.com>2024-03-22 09:14:42 +0800
commitdc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b (patch)
treea534155ed127b0c6b4f22ea86150c4e0c045d62a /src/nvim/indent.c
parent15c6909bb198ca8a1a22405a4a7e96357716e57e (diff)
parent58cc66ee1f066127c33157b91c64d9b125a96621 (diff)
downloadrneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.tar.gz
rneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.tar.bz2
rneovim-dc110cba3c0d48d7c9dbb91900f8be0cf6cf0c9b.zip
Merge pull request #26970 from famiu/refactor/options/set_option_direct
refactor(options): remove `set_string_option_direct()`
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r--src/nvim/indent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c
index 6cbb86866e..d477b466d7 100644
--- a/src/nvim/indent.c
+++ b/src/nvim/indent.c
@@ -1105,7 +1105,7 @@ void ex_retab(exarg_T *eap)
colnr_T *old_vts_ary = curbuf->b_p_vts_array;
if (tabstop_count(old_vts_ary) > 0 || tabstop_count(new_vts_array) > 1) {
- set_string_option_direct(kOptVartabstop, new_ts_str, OPT_LOCAL, 0);
+ set_option_direct(kOptVartabstop, CSTR_AS_OPTVAL(new_ts_str), OPT_LOCAL, 0);
curbuf->b_p_vts_array = new_vts_array;
xfree(old_vts_ary);
} else {