comparison src/cmdhist.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 4dfd00f481fb
children 7334bf933510
comparison
equal deleted inserted replaced
22698:28523bc9ee71 22699:e82579016863
302 int len; 302 int len;
303 303
304 if (hislen == 0) // no history 304 if (hislen == 0) // no history
305 return; 305 return;
306 306
307 if (cmdmod.keeppatterns && histype == HIST_SEARCH) 307 if ((cmdmod.cmod_flags & CMOD_KEEPPATTERNS) && histype == HIST_SEARCH)
308 return; 308 return;
309 309
310 // Searches inside the same mapping overwrite each other, so that only 310 // Searches inside the same mapping overwrite each other, so that only
311 // the last line is kept. Be careful not to remove a line that was moved 311 // the last line is kept. Be careful not to remove a line that was moved
312 // down, only lines that were added. 312 // down, only lines that were added.