From b1735ae76ed730698c9b25b9534a96c625f52b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Ros=C3=A9n?= Date: Thu, 25 May 2017 21:39:05 +0200 Subject: Expose last entered command in register : --- src/normal.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index 6b2b568a..aa2c3903 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -451,6 +451,7 @@ void command(Context& context, NormalParams params) } if (event == PromptEvent::Validate) { + RegisterManager::instance()[':'].set(context, cmdline.str()); EnvVarMap env_vars = { { "count", to_string(params.count) }, { "register", String{¶ms.reg, 1} } -- cgit v1.2.3