--- a/src/eric7/QScintilla/Editor.py Sun Dec 31 11:07:56 2023 +0100 +++ b/src/eric7/QScintilla/Editor.py Sun Dec 31 12:24:11 2023 +0100 @@ -1819,6 +1819,19 @@ self.eolChanged.emit(eol) self.inEolChanged = False + def convertEols(self, eolMode): + """ + Public method to convert the end-of-line marker. + + This variant of the method emits a signal to update the IDE after + the original method was called. + + @param eolMode end-of-line mode + @type QsciScintilla.EolMode + """ + super().convertEols(eolMode) + self.__eolChanged() + @pyqtSlot() def __showContextMenuSpellCheck(self): """ @@ -3474,9 +3487,8 @@ return with EricOverrideCursor(): - modified = False - self.setText(txt) + self.setModified(False) # get eric specific flags self.__processFlags() @@ -3489,10 +3501,10 @@ else: fileEol = self.detectEolString(txt) self.setEolModeByEolString(fileEol) + self.__eolChanged() self.extractTasks() - self.setModified(modified) self.lastModified = pathlib.Path(fn).stat().st_mtime @pyqtSlot()