Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Tue, 17 Aug 2021 22:26:36 UTC Commit: 152c72280af26b1ca87a0ad9ebb3c7ce8007a84e https://github.com/geany/geany-plugins/commit/152c72280af26b1ca87a0ad9ebb3c7...
Log Message: ----------- vimode: Ignore special command handling in insert mode
This special command handling is not related to insert mode and causes problems in "insert mode for dummies".
Fixes #1075.
Modified Paths: -------------- vimode/src/cmd-runner.c
Modified: vimode/src/cmd-runner.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -507,15 +507,15 @@ static CmdDef *get_cmd_to_run(GSList *kpl, CmdDef *cmds, gboolean have_selection if (cmd->cmd == c) return cmd; } - else if (prev && prev->key == GDK_KEY_g) + else if (prev && prev->key == GDK_KEY_g && !VI_IS_INSERT(mode)) { // takes care of operator commands like g~, gu, gU where we // have no selection yet so the 2-letter command isn't found // above and a corresponding 1-letter command ~, u, U exists and // would be used instead of waiting for the full command } else if (is_cmdpart(kpl, text_object_cmds) && - get_cmd_to_run(below, operator_cmds, TRUE)) + get_cmd_to_run(below, operator_cmds, TRUE) && !VI_IS_INSERT(mode)) { // if we received "a" or "i", we have to check if there's not // an operator command below because these can be part of
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org