comparison src/ex_docmd.c @ 19137:69f0e9b5c107 v8.2.0128

patch 8.2.0128: cannot list options one per line Commit: https://github.com/vim/vim/commit/6b915c0c0ee7ef82f8d3d310a4345e098cb929b0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 18 15:53:19 2020 +0100 patch 8.2.0128: cannot list options one per line Problem: Cannot list options one per line. Solution: Use ":set!" to list one option per line.
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Jan 2020 16:00:04 +0100
parents 17722555af22
children 94eda51ba9ba
comparison
equal deleted inserted replaced
19136:bbce494fe8df 19137:69f0e9b5c107
318 # define ex_diffsplit ex_ni 318 # define ex_diffsplit ex_ni
319 # define ex_diffthis ex_ni 319 # define ex_diffthis ex_ni
320 # define ex_diffupdate ex_ni 320 # define ex_diffupdate ex_ni
321 #endif 321 #endif
322 static void ex_digraphs(exarg_T *eap); 322 static void ex_digraphs(exarg_T *eap);
323 static void ex_set(exarg_T *eap);
324 #ifdef FEAT_SEARCH_EXTRA 323 #ifdef FEAT_SEARCH_EXTRA
325 static void ex_nohlsearch(exarg_T *eap); 324 static void ex_nohlsearch(exarg_T *eap);
326 #else 325 #else
327 # define ex_nohlsearch ex_ni 326 # define ex_nohlsearch ex_ni
328 # define ex_match ex_ni 327 # define ex_match ex_ni
8486 #else 8485 #else
8487 emsg(_("E196: No digraphs in this version")); 8486 emsg(_("E196: No digraphs in this version"));
8488 #endif 8487 #endif
8489 } 8488 }
8490 8489
8491 static void
8492 ex_set(exarg_T *eap)
8493 {
8494 int flags = 0;
8495
8496 if (eap->cmdidx == CMD_setlocal)
8497 flags = OPT_LOCAL;
8498 else if (eap->cmdidx == CMD_setglobal)
8499 flags = OPT_GLOBAL;
8500 #if defined(FEAT_EVAL) && defined(FEAT_BROWSE)
8501 if (cmdmod.browse && flags == 0)
8502 ex_options(eap);
8503 else
8504 #endif
8505 (void)do_set(eap->arg, flags);
8506 }
8507
8508 #if defined(FEAT_SEARCH_EXTRA) || defined(PROTO) 8490 #if defined(FEAT_SEARCH_EXTRA) || defined(PROTO)
8509 void 8491 void
8510 set_no_hlsearch(int flag) 8492 set_no_hlsearch(int flag)
8511 { 8493 {
8512 no_hlsearch = flag; 8494 no_hlsearch = flag;