diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-03-09 23:29:46 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-03-09 23:29:46 +0000 |
| commit | fcd3437fac01ecb942d3fd9116d1d1a3c455c59e (patch) | |
| tree | 479798e1738023100c58b9cb9ef13838bb08b85d /src/normal.cc | |
| parent | 2d494ccb8e72782a0a015c8890d39ab00d5ce4aa (diff) | |
| parent | 517abf5e74636052007db0938067aee7bf658965 (diff) | |
Merge branch 'json-ui'
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc index 4d95ff53..33c813f6 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1560,6 +1560,15 @@ void ensure_forward(Context& context, NormalParams) context.selections().check_invariant(); } +void force_redraw(Context& context, NormalParams) +{ + if (context.has_client()) + { + context.client().force_redraw(); + context.client().redraw_ifn(); + } +} + static NormalCmdDesc cmds[] = { { 'h', "move left", move<CharCount, Backward> }, @@ -1734,6 +1743,8 @@ static NormalCmdDesc cmds[] = { 'z', "restore selections", restore_selections<false> }, { alt('z'), "append saved selections", restore_selections<true> }, { 'Z', "save selections", save_selections }, + + { ctrl('l'), "force redraw", force_redraw }, }; KeyMap keymap = cmds; |
