mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Only set encoding settings (post open) for documents with a path
This commit is contained in:
@@ -657,9 +657,8 @@ namespace document
|
||||
return;
|
||||
}
|
||||
|
||||
_disk_encoding = encoding.charset();
|
||||
_disk_newlines = encoding.newlines();
|
||||
_disk_bom = encoding.byte_order_mark();
|
||||
if(path != NULL_STR)
|
||||
set_disk_encoding(encoding);
|
||||
|
||||
if(_file_type == NULL_STR)
|
||||
_file_type = fileType;
|
||||
|
||||
Reference in New Issue
Block a user