Rename align indent to more correct copy indent

This commit is contained in:
Maxime Coste 2014-02-27 22:19:37 +00:00
parent 6585000b66
commit 0cd82d0ebe
2 changed files with 4 additions and 4 deletions

View File

@ -208,7 +208,7 @@ Changes
* _r_: replace each character with the next entered one * _r_: replace each character with the next entered one
* _&_: align selection, align the cursor of selections by inserting * _&_: align selection, align the cursor of selections by inserting
spaces before the first character of the selection spaces before the first character of the selection
* _alt-&_: align indent, copy the indentation of the main selection * _alt-&_: copy indent, copy the indentation of the main selection
(or the count one if a count is given) to all other ones (or the count one if a count is given) to all other ones
* _`_: to lower case * _`_: to lower case

View File

@ -1071,7 +1071,7 @@ void align(Context& context, int)
} }
} }
void align_indent(Context& context, int selection) void copy_indent(Context& context, int selection)
{ {
auto& buffer = context.buffer(); auto& buffer = context.buffer();
auto& selections = context.selections(); auto& selections = context.selections();
@ -1340,7 +1340,7 @@ KeyMap keymap =
{ alt('`'), for_each_char<swap_case> }, { alt('`'), for_each_char<swap_case> },
{ '&', align }, { '&', align },
{ alt('&'), align_indent }, { alt('&'), copy_indent },
{ Key::Left, move<CharCount, Backward> }, { Key::Left, move<CharCount, Backward> },
{ Key::Down, move<LineCount, Forward> }, { Key::Down, move<LineCount, Forward> },