Branch: refs/heads/master Author: Nick Treleaven nick.treleaven@btinternet.com Committer: Nick Treleaven nick.treleaven@btinternet.com Date: Thu, 30 Oct 2014 16:34:00 UTC Commit: cfcbc6a2056100c741514b6df8d02438854d26cd https://github.com/geany/geany/commit/cfcbc6a2056100c741514b6df8d02438854d26...
Log Message: ----------- Make Next/Previous Message keybindings work without a document open
Modified Paths: -------------- src/keybindings.c
Modified: src/keybindings.c 15 lines changed, 8 insertions(+), 7 deletions(-) =================================================================== @@ -1420,10 +1420,15 @@ static gboolean cb_func_search_action(guint key_id) GeanyDocument *doc = document_get_current(); ScintillaObject *sci;
- if (key_id == GEANY_KEYS_SEARCH_FINDINFILES) + /* these work without docs */ + switch (key_id) { - on_find_in_files1_activate(NULL, NULL); /* works without docs too */ - return TRUE; + case GEANY_KEYS_SEARCH_FINDINFILES: + on_find_in_files1_activate(NULL, NULL); return TRUE; + case GEANY_KEYS_SEARCH_NEXTMESSAGE: + on_next_message1_activate(NULL, NULL); return TRUE; + case GEANY_KEYS_SEARCH_PREVIOUSMESSAGE: + on_previous_message1_activate(NULL, NULL); return TRUE; } if (!doc) return TRUE; @@ -1443,10 +1448,6 @@ static gboolean cb_func_search_action(guint key_id) on_find_nextsel1_activate(NULL, NULL); break; case GEANY_KEYS_SEARCH_REPLACE: on_replace1_activate(NULL, NULL); break; - case GEANY_KEYS_SEARCH_NEXTMESSAGE: - on_next_message1_activate(NULL, NULL); break; - case GEANY_KEYS_SEARCH_PREVIOUSMESSAGE: - on_previous_message1_activate(NULL, NULL); break; case GEANY_KEYS_SEARCH_FINDUSAGE: on_find_usage1_activate(NULL, NULL); break; case GEANY_KEYS_SEARCH_FINDDOCUMENTUSAGE:
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).