mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
Changed the return type of view_toggle_ruler() to void.
This commit is contained in:
parent
ad29def0c4
commit
01432587b8
@ -2939,7 +2939,7 @@ continue_search (WView *view)
|
||||
}
|
||||
}
|
||||
|
||||
static cb_ret_t
|
||||
static void
|
||||
view_toggle_ruler (WView *view)
|
||||
{
|
||||
static const enum ruler_type next[3] = {
|
||||
@ -2951,7 +2951,6 @@ view_toggle_ruler (WView *view)
|
||||
assert ((size_t) ruler < 3);
|
||||
ruler = next[(size_t) ruler];
|
||||
view->dirty++;
|
||||
return MSG_HANDLED;
|
||||
}
|
||||
|
||||
static void view_cmk_move_up (void *w, int n) {
|
||||
@ -3040,7 +3039,8 @@ view_handle_key (WView *view, int c)
|
||||
|
||||
/* toggle ruler */
|
||||
case ALT ('r'):
|
||||
return view_toggle_ruler (view);
|
||||
view_toggle_ruler (view);
|
||||
return MSG_HANDLED;
|
||||
|
||||
case 'h':
|
||||
view_move_left (view, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user