mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1898: command modifier parsing always uses global cmdmod
Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
This commit is contained in:
@@ -7868,15 +7868,15 @@ clip_xterm_set_selection(Clipboard_T *cbd)
|
||||
static void
|
||||
xsmp_handle_interaction(SmcConn smc_conn, SmPointer client_data UNUSED)
|
||||
{
|
||||
cmdmod_T save_cmdmod;
|
||||
int save_cmod_flags;
|
||||
int cancel_shutdown = False;
|
||||
|
||||
save_cmdmod = cmdmod;
|
||||
cmdmod.confirm = TRUE;
|
||||
save_cmod_flags = cmdmod.cmod_flags;
|
||||
cmdmod.cmod_flags |= CMOD_CONFIRM;
|
||||
if (check_changed_any(FALSE, FALSE))
|
||||
// Mustn't logout
|
||||
cancel_shutdown = True;
|
||||
cmdmod = save_cmdmod;
|
||||
cmdmod.cmod_flags = save_cmod_flags;
|
||||
setcursor(); // position cursor
|
||||
out_flush();
|
||||
|
||||
|
Reference in New Issue
Block a user