[geany/geany-plugins] 25291e: vimode: increase the size of the buffer for recording insert mode text

Jiří Techet git-noreply at xxxxx
Wed Sep 29 17:11:16 UTC 2021


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Tue, 07 Sep 2021 11:08:05 UTC
Commit:      25291ea004e3430d1ad8947d90f552e5d40456fa
             https://github.com/geany/geany-plugins/commit/25291ea004e3430d1ad8947d90f552e5d40456fa

Log Message:
-----------
vimode: increase the size of the buffer for recording insert mode text

This should be more than enough for manually inserted text and a reasonable
amount for pasted text.


Modified Paths:
--------------
    vimode/src/context.h

Modified: vimode/src/context.h
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -22,7 +22,7 @@
 #include "vi.h"
 #include "sci.h"
 
-#define INSERT_BUF_LEN 4096
+#define INSERT_BUF_LEN 131072
 
 typedef struct
 {
@@ -54,7 +54,7 @@ typedef struct
 	gint num;
 
 	/* buffer used in insert/replace mode to record entered text so it can be
-	 * copied N times when e.g. 'i' is preceded by a number */
+	 * copied N times when e.g. 'i' is preceded by a number or when using '.' */
 	gchar insert_buf[INSERT_BUF_LEN];
 	gint insert_buf_len;
 } CmdContext;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list