diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-08-27 07:23:39 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-08-27 08:03:42 +1000 |
| commit | fe93a9df37bdc28ff6580cf9ece8d18bbe2663cf (patch) | |
| tree | 36e879ca26cc4f55f73695230e9d43268aafe298 /src/normal.cc | |
| parent | 6f9f32b4bb7603c308a3e245fef10ad48bf20719 (diff) | |
Remove Window::force_redraw()
This was mostly redundant with Client::force_redraw.
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/normal.cc b/src/normal.cc index b16b9c37..79a434ac 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1008,8 +1008,8 @@ void use_selection_as_search_pattern(Context& context, NormalParams params) RegisterManager::instance()[reg].set(context, {pattern}); // Hack, as Window do not take register state into account - if (context.has_window()) - context.window().force_redraw(); + if (context.has_client()) + context.client().force_redraw(); } void select_regex(Context& context, NormalParams params) @@ -2208,7 +2208,7 @@ void force_redraw(Context& context, NormalParams) { if (context.has_client()) { - context.client().force_redraw(); + context.client().force_redraw(true); context.client().redraw_ifn(); } } |
