Merge remote-tracking branch 'Delapouite/shift-modes'

This commit is contained in:
Maxime Coste 2017-06-03 14:45:48 +01:00
commit c440bbde81

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)"},