fix: Incorrect horizontal scrollbar displayed. (#2209)

The horizontal scroll bar length is set using the maximum line length across the input file. The original setup had the lengths of imported and included files added so changes are made to insure that only changes from the input file are taken. This required changes to the Pattern Language library so the library is updated to the latest version as well.
This commit is contained in:
paxcut
2025-05-04 07:56:39 -07:00
committed by GitHub
parent 78ad0d2592
commit 4883ed0e5a
4 changed files with 9 additions and 15 deletions

View File

@@ -1846,6 +1846,7 @@ namespace hex::plugin::builtin {
ContentRegistry::PatternLanguage::configureRuntime(*m_editorRuntime, nullptr);
const auto &ast = m_editorRuntime->parseString(code, pl::api::Source::DefaultSource);
m_textEditor.SetLongestLineLength(m_editorRuntime->getInternals().preprocessor.get()->getLongestLineLength());
auto &patternVariables = m_patternVariables.get(provider);
auto oldPatternVariables = std::move(patternVariables);