kak_bufname env var use display_name

This commit is contained in:
Maxime Coste 2013-03-26 19:28:44 +01:00
parent c6a1fed6b4
commit ee0e640384

View File

@ -685,7 +685,7 @@ void register_env_vars()
shell_manager.register_env_var("bufname",
[](const String& name, const Context& context)
{ return context.buffer().name(); });
{ return context.buffer().display_name(); });
shell_manager.register_env_var("timestamp",
[](const String& name, const Context& context)
{ return int_to_str(context.buffer().timestamp()); });