summaryrefslogtreecommitdiff
path: root/src/window.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-12-16 14:09:20 +1100
committerMaxime Coste <mawww@kakoune.org>2019-12-16 14:09:20 +1100
commit878a7fbb903ba9de4e8c75ef007d350f2c36738f (patch)
treec656e6c8c51e928fead1d0c4f6c5921470c4b235 /src/window.hh
parentefabe281732fa4a2cb83ab2adf65c840c251101f (diff)
Fix window_range expansion
It relied on the buffer first char being visible, and could trigger segfaults when that was not the case.
Diffstat (limited to 'src/window.hh')
-rw-r--r--src/window.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.hh b/src/window.hh
index ad754568..dd7a325b 100644
--- a/src/window.hh
+++ b/src/window.hh
@@ -50,11 +50,11 @@ public:
void clear_display_buffer();
void run_resize_hook_ifn();
+ DisplaySetup compute_display_setup(const Context& context) const;
private:
Window(const Window&) = delete;
void on_option_changed(const Option& option) override;
- DisplaySetup compute_display_setup(const Context& context) const;
friend class ClientManager;
void run_hook_in_own_context(Hook hook, StringView param,