summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-01-17 21:22:59 +0100
committerChristian Brabandt <cb@256bit.org>2024-01-17 21:22:59 +0100
commitf267847017976ab85117bdf75b45e769836f8d69 (patch)
treed57462af4d3a29cb32ebd31e714a7a6de56c40eb /src/structs.h
parent6a8d2e1634f8f0d7463a2786dbcbe0f38dd287a7 (diff)
patch 9.1.0040: issue with prompt buffer and hidden bufferv9.1.0040
Problem: Modifying a hidden buffer still interferes with prompt buffer mode changes. Solution: Save and restore b_prompt_insert. (zeertzjq) closes: #13875 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org> Modifying hidden buffer still interferes with prompt buffer mode changes
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h
index 76f143305b..5b88260f35 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4358,7 +4358,6 @@ typedef int vimmenu_T;
*/
typedef struct
{
- buf_T *save_curbuf; // saved curbuf
int use_aucmd_win_idx; // index in aucmd_win[] if >= 0
int save_curwin_id; // ID of saved curwin
int new_curwin_id; // ID of new curwin
@@ -4367,6 +4366,9 @@ typedef struct
char_u *globaldir; // saved value of globaldir
int save_VIsual_active; // saved VIsual_active
int save_State; // saved State
+#ifdef FEAT_JOB_CHANNEL
+ int save_prompt_insert; // saved b_prompt_insert
+#endif
} aco_save_T;
/*