comparison src/ex_getln.c @ 14858:49b3bdf774ad v8.1.0441

patch 8.1.0441: build failure without command line history commit https://github.com/vim/vim/commit/d3dc062160b52f2a01900a8b8badb531fb8b3f16 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 30 17:45:30 2018 +0200 patch 8.1.0441: build failure without command line history Problem: Build failure without command line history. Solution: Move cmdline_init() outside of #ifdef.
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Sep 2018 18:00:06 +0200
parents 3b72808fbb0d
children 27b9a84395b5
comparison
equal deleted inserted replaced
14857:6eec3203fecf 14858:49b3bdf774ad
772 } 772 }
773 } 773 }
774 return OK; 774 return OK;
775 } 775 }
776 #endif 776 #endif
777
778 void
779 cmdline_init(void)
780 {
781 vim_memset(&ccline, 0, sizeof(struct cmdline_info));
782 }
777 783
778 /* 784 /*
779 * getcmdline() - accept a command line starting with firstc. 785 * getcmdline() - accept a command line starting with firstc.
780 * 786 *
781 * firstc == ':' get ":" command line. 787 * firstc == ':' get ":" command line.
7044 VIM_CLEAR(viminfo_history[type]); 7050 VIM_CLEAR(viminfo_history[type]);
7045 viminfo_hisidx[type] = 0; 7051 viminfo_hisidx[type] = 0;
7046 } 7052 }
7047 } 7053 }
7048 7054
7049 void
7050 cmdline_init(void)
7051 {
7052 vim_memset(&ccline, 0, sizeof(struct cmdline_info));
7053 }
7054
7055 /* 7055 /*
7056 * Write history to viminfo file in "fp". 7056 * Write history to viminfo file in "fp".
7057 * When "merge" is TRUE merge history lines with a previously read viminfo 7057 * When "merge" is TRUE merge history lines with a previously read viminfo
7058 * file, data is in viminfo_history[]. 7058 * file, data is in viminfo_history[].
7059 * When "merge" is FALSE just write all history lines. Used for ":wviminfo!". 7059 * When "merge" is FALSE just write all history lines. Used for ":wviminfo!".