Mercurial > vim
comparison src/gui.c @ 22699:e82579016863 v8.2.1898
patch 8.2.1898: command modifier parsing always uses global cmdmod
Commit: https://github.com/vim/vim/commit/e10044015841711b989f9a898d427bcc1fdb4c32
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 24 20:49:43 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Oct 2020 21:00:05 +0200 |
parents | 35921b7fc07a |
children | b37d22c73eca |
comparison
equal
deleted
inserted
replaced
22698:28523bc9ee71 | 22699:e82579016863 |
---|---|
862 save_cmdmod = cmdmod; | 862 save_cmdmod = cmdmod; |
863 | 863 |
864 // Only exit when there are no changed files | 864 // Only exit when there are no changed files |
865 exiting = TRUE; | 865 exiting = TRUE; |
866 # ifdef FEAT_BROWSE | 866 # ifdef FEAT_BROWSE |
867 cmdmod.browse = TRUE; | 867 cmdmod.cmod_flags |= CMOD_BROWSE; |
868 # endif | 868 # endif |
869 # if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG) | 869 # if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG) |
870 cmdmod.confirm = TRUE; | 870 cmdmod.cmod_flags |= CMOD_CONFIRM; |
871 # endif | 871 # endif |
872 // If there are changed buffers, present the user with a dialog if | 872 // If there are changed buffers, present the user with a dialog if |
873 // possible, otherwise give an error message. | 873 // possible, otherwise give an error message. |
874 if (!check_changed_any(FALSE, FALSE)) | 874 if (!check_changed_any(FALSE, FALSE)) |
875 getout(0); | 875 getout(0); |