Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpc committed Nov 26, 2018
1 parent e5c43f3 commit 76826fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/input_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ class Normal : public InputMode
context().hooks().run_hook(Hook::NormalKey, key_to_str(key), context());
if (enabled() and not transient) // The hook might have changed mode
m_idle_timer.set_next_date(Clock::now() + get_idle_timeout(context()));

}

DisplayLine mode_line() const override
Expand Down
10 changes: 4 additions & 6 deletions src/normal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2003,10 +2003,9 @@ class Repeated
ScopedEdition edition(context);
do {
m_func(context, {0, params.reg});
if (params.count > 1) {
if (params.count > 1)
context.post_movement_logic();
}
} while(--params.count > 0);
} while (--params.count > 0);
}
private:
T m_func;
Expand All @@ -2018,10 +2017,9 @@ void repeated(Context& context, NormalParams params)
ScopedEdition edition(context);
do {
func(context, {0, params.reg});
if (params.count > 1) {
if (params.count > 1)
context.post_movement_logic();
}
} while(--params.count > 0);
} while (--params.count > 0);
}

template<typename Type, Direction direction, SelectMode mode = SelectMode::Replace>
Expand Down
1 change: 0 additions & 1 deletion src/selectors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,6 @@ trim_partial_lines(const Context& context, const Selection& selection)
BufferCoord& to_line_start = anchor <= cursor ? anchor : cursor;
BufferCoord& to_line_end = anchor <= cursor ? cursor : anchor;


context.enter_or_keep_line_editing();

if (to_line_start.column != 0)
Expand Down

0 comments on commit 76826fc

Please sign in to comment.