Fix register alternate name doc and dash -> hash for '#'

This commit is contained in:
Maxime Coste 2016-10-10 23:19:23 +01:00
parent 10681f4809
commit 0d2bb4756b
3 changed files with 4 additions and 4 deletions

View File

@ -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`

View File

@ -59,7 +59,7 @@ contain some special data
*.* (dot)::
current selection contents
*#* (dash)::
*#* (hash)::
selection indices (first selection has 1, second has 2, ...)
*_* (underscore)::

View File

@ -19,7 +19,7 @@ Register& RegisterManager::operator[](StringView reg) const
{ "arobase", '@' },
{ "percent", '%' },
{ "dot", '.' },
{ "dash", '#' },
{ "hash", '#' },
{ "underscore", '_' }
};
auto it = reg_names.find(reg);