diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-07-24 01:38:30 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-07-24 01:38:30 +0200 |
| commit | 62fdacb757cee6bb4d859f49b8ca7a2e476b8379 (patch) | |
| tree | 9d70c67704d78257ba3c70dddc44560e672d8435 /src/normal.cc | |
| parent | 8633a37dad814ef16291cf153cf037f43399e1a7 (diff) | |
Add scroll left/right support
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc index 81526b9c..4c50bc03 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -194,6 +194,12 @@ void view_commands(Context& context) case 'k': context.window().scroll(-std::max<LineCount>(1, context.numeric_param())); break; + case 'l': + context.window().scroll( std::max<CharCount>(1, context.numeric_param())); + break; + case 'h': + context.window().scroll(-std::max<CharCount>(1, context.numeric_param())); + break; } }); } |
