summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorportix <none@none>2013-02-19 21:55:36 +0100
committerportix <none@none>2013-02-19 21:55:36 +0100
commitf614ebb8fe343a2ef3ee14c68ee3317fa3f968b6 (patch)
tree9ff1aef587135f99a6e028cdabb8a76488efc8d6 /src/commands.c
parenta4ff0b6bb050cfc6533a0f2f0bed9102009ad176 (diff)
downloaddwb-f614ebb8fe343a2ef3ee14c68ee3317fa3f968b6.zip
Search history, use mutex for global_unbind
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c
index ffb7ff17..27dc3d84 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -471,6 +471,8 @@ commands_entry_history_forward(KeyMap *km, Arg *a)
{
if (dwb.state.mode == COMMAND_MODE)
return entry_history_forward(&dwb.state.last_com_history);
+ else if (dwb.state.mode == FIND_MODE)
+ return entry_history_forward(&dwb.state.last_find_history);
else
return entry_history_forward(&dwb.state.last_nav_history);
}/*}}}*/
@@ -481,6 +483,8 @@ commands_entry_history_back(KeyMap *km, Arg *a)
{
if (dwb.state.mode == COMMAND_MODE)
return entry_history_back(&dwb.fc.commands, &dwb.state.last_com_history);
+ else if (dwb.state.mode == FIND_MODE)
+ return entry_history_back(&dwb.fc.searches, &dwb.state.last_find_history);
else
return entry_history_back(&dwb.fc.navigations, &dwb.state.last_nav_history);
}/*}}}*/