From d143a0e6d52f9ff1543d9b1eeff3e777e248fff2 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Thu, 9 Jan 2020 18:12:20 -0800 Subject: [PATCH] Fix indent on save bug --- custom/4coder_default_hooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }