mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
ecode: Fix crash when loading big files and using the LSP. Try to detect binary files and don't display them with fallback fonts.
This commit is contained in:
@@ -85,7 +85,7 @@ class EE_API FontTrueType : public Font {
|
||||
|
||||
const Uint32& getFontInternalId() const;
|
||||
|
||||
bool getEnableFallbackFont() const;
|
||||
bool isFallbackFontEnabled() const;
|
||||
|
||||
void setEnableFallbackFont( bool enableFallbackFont );
|
||||
|
||||
|
||||
@@ -555,6 +555,10 @@ class EE_API TextDocument {
|
||||
|
||||
String getWordInPosition();
|
||||
|
||||
bool mightBeBinary() const;
|
||||
|
||||
void setMightBeBinary( bool mightBeBinary );
|
||||
|
||||
protected:
|
||||
friend class UndoStack;
|
||||
|
||||
@@ -581,6 +585,7 @@ class EE_API TextDocument {
|
||||
bool mDirtyOnFileSystem{ false };
|
||||
bool mSaving{ false };
|
||||
bool mDeleteOnClose{ false };
|
||||
bool mMightBeBinary{ false };
|
||||
std::vector<std::pair<String::StringBaseType, String::StringBaseType>> mAutoCloseBracketsPairs;
|
||||
Uint32 mIndentWidth{ 4 };
|
||||
IndentType mIndentType{ IndentType::IndentTabs };
|
||||
|
||||
Reference in New Issue
Block a user