diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-12-23 01:56:54 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-12-23 01:56:54 +0000 |
| commit | 411e5a948621ea12d64495c419885f933335e9ec (patch) | |
| tree | 06f25235fcba358d60520fdbb525a9dd0f8d833d /src/normal.cc | |
| parent | 9e664318af7c33bcc6dd72612294d1d7c982a271 (diff) | |
Extract jump list handling in a JumpList struct
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/normal.cc b/src/normal.cc index 839093ac..84956e08 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1135,7 +1135,8 @@ template<Direction direction> void jump(Context& context, NormalParams) { auto jump = (direction == Forward) ? - context.jump_forward() : context.jump_backward(); + context.jump_list().forward() : + context.jump_list().backward(context.selections()); Buffer* oldbuf = &context.buffer(); Buffer& buffer = const_cast<Buffer&>(jump.buffer()); @@ -1153,7 +1154,7 @@ void push_selections(Context& context, NormalParams) void drop_jump(Context& context, NormalParams) { - context.drop_jump(); + context.jump_list().drop(); context.print_status({ "dropped last jump", get_face("Information") }); } |
