Commit b1303bc
authored
fix: Incorrect horizontal scrollbar displayed. (WerWolv#160)
* fix: Incorrect horizontal scrollbar displayed.
After the recent changes to scrolling the code uses the longest line in the source code to determine if and how big horizontal scrollbars are needed. Instead of the computationally expensive calculation of the longest line, we let the lexer record it when it generates the token stream. It turns out that the lexer is also getting token streams for the included and imported files which leads to the problem.
Instead of letting the lexer do both the recording and the reporting of the longest line in the code we use the preprocessor to intercept the value before the included and imported files are preprocessed.
The fix is incomplete unless an upcoming PR to ViewPatterneditor.cpp where the longest line size is sent to the text editor is also included.
* Update fmt submodule to the latest version1 parent 6499970 commit b1303bc
5 files changed
Lines changed: 8 additions & 5 deletions
File tree
- external
- lib
- include/pl/core
- source/pl/core
- .clang-format+6
- .github/workflows/cifuzz.yml+5-3
- .github/workflows/doc.yml+1-1
- .github/workflows/lint.yml+8-36
- .github/workflows/linux.yml+15-13
- .github/workflows/macos.yml+6-2
- .github/workflows/scorecard.yml+4-4
- .github/workflows/windows.yml+4-9
- .gitignore+1
- CMakeLists.txt+31-15
- ChangeLog.md+322
- README.md+1
- doc/api.md+54-23
- doc/get-started.md+1-1
- doc/index.md+2-2
- doc/syntax.md+4-5
- include/fmt/args.h+20-28
- include/fmt/base.h+1.8k-1.9k
- include/fmt/chrono.h+376-470
- include/fmt/color.h+20-22
- include/fmt/compile.h+54-44
- include/fmt/format-inl.h+65-44
- include/fmt/format.h+1.1k-1.3k
- include/fmt/os.h+43-55
- include/fmt/ostream.h+43-88
- include/fmt/printf.h+107-130
- include/fmt/ranges.h+98-130
- include/fmt/std.h+74-47
- include/fmt/xchar.h+97-46
- src/fmt.cc+19-1
- src/format.cc+4-1
- src/os.cc+6-11
- support/mkdocs+35-3
- support/python/mkdocstrings_handlers/cxx/__init__.py+311-290
- support/release.py+31-61
- test/CMakeLists.txt+4-19
- test/args-test.cc+14
- test/base-test.cc+131-144
- test/chrono-test.cc+40-15
- test/compile-error-test/CMakeLists.txt+1-27
- test/compile-test.cc+51-13
- test/format-impl-test.cc+4-3
- test/format-test.cc+148-27
- test/gtest/gmock-gtest-all.cc+19-11
- test/gtest/gmock/gmock.h+24-10
- test/gtest/gtest/gtest.h+4-3
- test/no-builtin-types-test.cc+24
- test/os-test.cc+1-1
- test/ranges-test.cc+23-16
- test/scan-test.cc+3-3
- test/scan.h+5-5
- test/std-test.cc+29-3
- test/test-assert.h+1-1
- test/unicode-test.cc+1-1
- test/util.cc+4-5
- test/xchar-test.cc+23-105
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
| 467 | + | |
466 | 468 | | |
467 | 469 | | |
468 | 470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| |||
0 commit comments