From 17900df7dbfe1856435aba62eb94b1de6aae4ab8 Mon Sep 17 00:00:00 2001 From: Damien Leone Date: Mon, 11 Aug 2008 20:49:37 +0200 Subject: [PATCH] awful: fix index init Signed-off-by: Julien Danjou --- lib/awful.lua.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful.lua.in b/lib/awful.lua.in index 7ce832f8..b9da8d0b 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -772,8 +772,9 @@ local function prompt_history_load() if #prompt.history.data.table >= prompt.history.data.max then break end - end + end end + prompt.history.data.index = #prompt.history.data.table + 1 end end