mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
shader editor: write file in text mode for more expected newlines
This commit is contained in:
+1
-1
@@ -2351,7 +2351,7 @@ class TextEditor : public QObject
|
||||
hbox->addWidget( m_searchEntry );
|
||||
}
|
||||
void editor_save(){
|
||||
FILE *f = fopen( m_filename.c_str(), "wb" ); //write in binary mode to preserve line feeds
|
||||
FILE *f = fopen( m_filename.c_str(), "wt" );
|
||||
|
||||
if ( f == nullptr ) {
|
||||
globalErrorStream() << "Error saving file" << Quoted( m_filename ) << '\n';
|
||||
|
||||
Reference in New Issue
Block a user