diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-07-10 10:04:15 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-07-10 14:58:24 +1000 |
| commit | 94f5479e1aa4834930a358f2b6fc1d300658042e (patch) | |
| tree | 77a745c12d433cb1f459a875490aece97bd001b2 /src/main.cc | |
| parent | f3cb2e434004a718d1225cb0d74c694e66a7248b (diff) | |
Refactor highlighting logic
Always start with full buffer lines and trim the display buffer at
the very end, treat non-range display atoms as non-trimable in that
case and keep track of how many columns are occupied by "widgets"
such as line numbers or flags.
Fixes #4659
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc index 22adf194..b37a14d6 100644 --- a/src/main.cc +++ b/src/main.cc @@ -366,8 +366,8 @@ static const EnvVarDesc builtin_env_vars[] = { { [](StringView name, const Context& context) -> Vector<String> { auto setup = context.window().compute_display_setup(context); - return {format("{} {} {} {}", setup.window_pos.line, setup.window_pos.column, - setup.window_range.line, setup.window_range.column)}; + return {format("{} {} {} {}", setup.first_line, setup.first_column, + setup.line_count, 0)}; } }, { "history", false, |
