changeset 29649:1583728a5819 stable

fix eol mode when saving files under new names (bug #60585) * file-editor-tab.cc (notice_settings): read m_save_as_desired_eol from the settings file
author Torsten Lilge <ttl-octave@mailbox.org>
date Tue, 11 May 2021 22:42:29 +0200
parents 874430de1cc7
children 5068a97f0f39
files libgui/src/m-editor/file-editor-tab.cc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc	Mon May 10 20:04:16 2021 +0200
+++ b/libgui/src/m-editor/file-editor-tab.cc	Tue May 11 22:42:29 2021 +0200
@@ -2731,6 +2731,9 @@
 
     m_edit_area->setEolVisibility (settings->value (ed_show_eol_chars).toBool ());
 
+    m_save_as_desired_eol = static_cast<QsciScintilla::EolMode>
+                              (settings->value (ed_default_eol_mode).toInt ());
+
     if (settings->value (ed_show_line_numbers).toBool ())
       {
         m_edit_area->setMarginLineNumbers (2, true);