Refine info titles to distinguish G and V modes

This commit is contained in:
Delapouite 2017-05-31 19:57:56 +02:00
parent 1d74e1edaf
commit e8707298c1

View File

@ -291,7 +291,7 @@ void goto_commands(Context& context, NormalParams params)
break; break;
} }
} }
}, "goto", }, (mode == SelectMode::Extend ? "goto (extend to)" : "goto"),
build_autoinfo_for_mapping(context, KeymapMode::Goto, build_autoinfo_for_mapping(context, KeymapMode::Goto,
{{{'g','k'},"buffer top"}, {{{'g','k'},"buffer top"},
{{'l'}, "line end"}, {{'l'}, "line end"},
@ -355,7 +355,7 @@ void view_commands(Context& context, NormalParams params)
context.window().scroll( std::max<ColumnCount>(1, count)); context.window().scroll( std::max<ColumnCount>(1, count));
break; break;
} }
}, "view", }, lock ? "view (lock)" : "view",
build_autoinfo_for_mapping(context, KeymapMode::View, build_autoinfo_for_mapping(context, KeymapMode::View,
{{{'v','c'}, "center cursor (vertically)"}, {{{'v','c'}, "center cursor (vertically)"},
{{'m'}, "center cursor (horizontally)"}, {{'m'}, "center cursor (horizontally)"},