From 2742ae862a6a56f1cb3cb4c7118b6ecab45b4cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Wed, 1 May 2024 16:33:48 -0300 Subject: [PATCH] Updated SDL2 version (Fixes windows clipboard history, issue SpartanJ/ecode#123). --- premake4.lua | 2 +- premake5.lua | 8 ++++---- src/eepp/ui/doc/syntaxhighlighter.cpp | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/premake4.lua b/premake4.lua index 76aa095e4..7f43480ba 100644 --- a/premake4.lua +++ b/premake4.lua @@ -343,7 +343,7 @@ os_links = { } backends = { } static_backends = { } backend_selected = false -remote_sdl2_version = "SDL2-2.0.20" +remote_sdl2_version = "SDL2-2.30.3" function build_arch_configuration() if os.is_real("mingw32") or os.is_real("mingw64") then diff --git a/premake5.lua b/premake5.lua index 5c05cadf4..3b72f5eca 100644 --- a/premake5.lua +++ b/premake5.lua @@ -135,10 +135,10 @@ os_links = { } backends = { } static_backends = { } backend_selected = false -remote_sdl2_version = "SDL2-2.26.2" -remote_sdl2_devel_src_url = "https://libsdl.org/release/SDL2-2.26.2.zip" -remote_sdl2_devel_vc_url = "https://www.libsdl.org/release/SDL2-devel-2.26.2-VC.zip" -remote_sdl2_devel_mingw_url = "https://www.libsdl.org/release/SDL2-devel-2.26.2-mingw.zip" +remote_sdl2_version = "SDL2-2.30.3" +remote_sdl2_devel_src_url = "https://libsdl.org/release/SDL2-2.30.3.zip" +remote_sdl2_devel_vc_url = "https://www.libsdl.org/release/SDL2-devel-2.30.3-VC.zip" +remote_sdl2_devel_mingw_url = "https://www.libsdl.org/release/SDL2-devel-2.30.3-mingw.zip" function incdirs( dirs ) if is_xcode() then diff --git a/src/eepp/ui/doc/syntaxhighlighter.cpp b/src/eepp/ui/doc/syntaxhighlighter.cpp index 97f15fd82..2ac8fe013 100644 --- a/src/eepp/ui/doc/syntaxhighlighter.cpp +++ b/src/eepp/ui/doc/syntaxhighlighter.cpp @@ -75,6 +75,11 @@ TokenizedLine SyntaxHighlighter::tokenizeLine( const size_t& line, const SyntaxS tokenizedLine.tokens = std::move( res.first ); tokenizedLine.state = std::move( res.second ); tokenizedLine.updateSignature(); + if ( line == 0 && tokenizedLine.tokens.size() == 1 && + ( tokenizedLine.tokens[0].type == SyntaxStyleTypes::Normal || + tokenizedLine.tokens[0].type == SyntaxStyleTypes::Text ) ) { + Log::warning( "Something is rare..." ); + } return tokenizedLine; }