summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-26 21:44:57 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-26 21:44:57 +0100
commit9aa38a1ea072f78cb5a1f099b7b4db241de6d96d (patch)
treef40b93fda750c7840792604d39f8716b296d9ca6 /src/normal.cc
parentc1a7759e7faa298f613a43f69689568df9cf059e (diff)
Rename select_whole_.* to just select_.*
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 062f512c..882fbc3a 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -913,11 +913,11 @@ void select_object(Context& context, int param)
Codepoint key;
Selection (*func)(const Buffer&, const Selection&, ObjectFlags);
} selectors[] = {
- { 'w', select_whole_word<Word> },
- { 'W', select_whole_word<WORD> },
- { 's', select_whole_sentence },
- { 'p', select_whole_paragraph },
- { 'i', select_whole_indent },
+ { 'w', select_word<Word> },
+ { 'W', select_word<WORD> },
+ { 's', select_sentence },
+ { 'p', select_paragraph },
+ { 'i', select_indent },
};
for (auto& sel : selectors)
{
@@ -1387,7 +1387,7 @@ KeyMap keymap =
{ '.', repeat_last_insert },
- { '%', [](Context& context, int) { select_whole_buffer(context.buffer(), context.selections()); } },
+ { '%', [](Context& context, int) { select_buffer(context.buffer(), context.selections()); } },
{ ':', command },
{ '|', pipe<InsertMode::Replace> },
@@ -1417,7 +1417,7 @@ KeyMap keymap =
{ 'x', repeated(make_select<SelectMode::Replace>(select_line)) },
{ 'X', repeated(make_select<SelectMode::Extend>(select_line)) },
- { alt('x'), make_select<SelectMode::Replace>(select_whole_lines) },
+ { alt('x'), make_select<SelectMode::Replace>(select_lines) },
{ alt('X'), make_select<SelectMode::Replace>(trim_partial_lines) },
{ 'm', make_select<SelectMode::Replace>(select_matching) },