From 0d2bb4756b6dc7c8646344858c6193176a7105ae Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 10 Oct 2016 23:19:23 +0100 Subject: [PATCH] Fix register alternate name doc and dash -> hash for '#' --- README.asciidoc | 4 ++-- doc/manpages/registers.asciidoc | 2 +- src/register_manager.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index ff240ff1..6064e676 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -1031,7 +1031,7 @@ contain some special data: * `%` (`percent`): current buffer name * `.` (`dot`): current selection contents - * `#` (`dash`): selection indices (first selection has 1, second has 2, ...) + * `#` (`hash`): selection indices (first selection has 1, second has 2, ...) * `_` (`underscore`): null register, always empty Default registers @@ -1039,7 +1039,7 @@ Default registers Most commands using a register default to a specific one if not specified: - * `"` (`dqoute`): default yank register, used by yanking and pasting commands like `y`, `p` and `R` + * `"` (`dquote`): default yank register, used by yanking and pasting commands like `y`, `p` and `R` * `/` (`slash`): default search register, used by regex based commands like `s`, `*` or `/` * `@` (`arobase`): default macro register, used by `q` and `Q` * `^` (`caret`): default mark register, used by `z` and `Z` diff --git a/doc/manpages/registers.asciidoc b/doc/manpages/registers.asciidoc index 8fbb9175..8ec294d3 100644 --- a/doc/manpages/registers.asciidoc +++ b/doc/manpages/registers.asciidoc @@ -59,7 +59,7 @@ contain some special data *.* (dot):: current selection contents -*#* (dash):: +*#* (hash):: selection indices (first selection has 1, second has 2, ...) *_* (underscore):: diff --git a/src/register_manager.cc b/src/register_manager.cc index a1ebabf2..635d05bc 100644 --- a/src/register_manager.cc +++ b/src/register_manager.cc @@ -19,7 +19,7 @@ Register& RegisterManager::operator[](StringView reg) const { "arobase", '@' }, { "percent", '%' }, { "dot", '.' }, - { "dash", '#' }, + { "hash", '#' }, { "underscore", '_' } }; auto it = reg_names.find(reg);