% register uses the buffer display name
This commit is contained in:
parent
1982144b04
commit
14933bdeaf
|
@ -724,7 +724,7 @@ void register_registers()
|
||||||
{
|
{
|
||||||
RegisterManager& register_manager = RegisterManager::instance();
|
RegisterManager& register_manager = RegisterManager::instance();
|
||||||
|
|
||||||
register_manager.register_dynamic_register('%', [](const Context& context) { return std::vector<String>(1, context.buffer().name()); });
|
register_manager.register_dynamic_register('%', [](const Context& context) { return std::vector<String>(1, context.buffer().display_name()); });
|
||||||
register_manager.register_dynamic_register('.', [](const Context& context) { return context.editor().selections_content(); });
|
register_manager.register_dynamic_register('.', [](const Context& context) { return context.editor().selections_content(); });
|
||||||
for (size_t i = 0; i < 10; ++i)
|
for (size_t i = 0; i < 10; ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user