summaryrefslogtreecommitdiff
path: root/src/texteditor.h
diff options
context:
space:
mode:
authorChris Djali <AnyOldName3@users.noreply.github.com>2025-02-28 18:52:49 +0000
committerGitHub <noreply@github.com>2025-02-28 19:52:49 +0100
commit62ccbb1d026b08ae70973e5b15adecd980556f0e (patch)
tree92a45fedb87b8a80c4d8538ddcf901cec3c03ca8 /src/texteditor.h
parent6299be28e13662d1b28be5f77f53ea2118e87dae (diff)
Write BOM if original file used one (#2213)
Important for UTF-16 as lots of things can't detect or read UTF-16 without a BOM
Diffstat (limited to 'src/texteditor.h')
-rw-r--r--src/texteditor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/texteditor.h b/src/texteditor.h
index 7f6adcdb..e6694518 100644
--- a/src/texteditor.h
+++ b/src/texteditor.h
@@ -130,6 +130,7 @@ private:
QColor m_highlightBackground;
QString m_filename;
QString m_encoding;
+ bool m_needsBOM;
bool m_dirty;
bool m_loading;