Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 05 May 2019 16:45:14 UTC Commit: 5ebf1c18e2d31ea7a4ca5ed9ba9f55f0b7d2d3ca https://github.com/geany/geany-plugins/commit/5ebf1c18e2d31ea7a4ca5ed9ba9f55...
Log Message: ----------- vimode: restrict history to 20 entries like vim
Modified Paths: -------------- vimode/src/excmd-prompt.c
Modified: vimode/src/excmd-prompt.c 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -81,6 +81,8 @@ static gboolean on_prompt_key_press_event(GtkWidget *widget, GdkEventKey *event, g_ptr_array_remove_index(history, index); if (strlen(text) > 1) g_ptr_array_add(history, g_strdup(text + 1)); + if (history->len > 20) // default vim history size + g_ptr_array_remove_index(history, 0);
excmd_perform(ctx, text); close_prompt();
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org