Fix indent on save bug
This commit is contained in:
parent
76735e6f01
commit
d143a0e6d5
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue