diff --git a/custom/4coder_default_hooks.cpp b/custom/4coder_default_hooks.cpp index c898d3bf..3824ca00 100644 --- a/custom/4coder_default_hooks.cpp +++ b/custom/4coder_default_hooks.cpp @@ -970,7 +970,7 @@ BUFFER_HOOK_SIG(default_new_file){ BUFFER_HOOK_SIG(default_file_save){ // buffer_id ProfileScope(app, "default file save"); - b32 is_virtual = false; + b32 is_virtual = global_config.enable_virtual_whitespace; if (global_config.automatically_indent_text_on_save && is_virtual){ auto_indent_buffer(app, buffer_id, buffer_range(app, buffer_id)); }