diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-11-09 12:08:49 +0100 | 
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2016-11-10 15:48:00 +0100 | 
| commit | 2e1217da4617c832afcd7ca90c88b06c200dc23b (patch) | |
| tree | 89b918a89238899aa97e8d06314b377909812293 /src/nvim/ex_getln.c | |
| parent | 0213e99aaf6eba303fd459183dd14a4a11cc5b07 (diff) | |
| download | rneovim-2e1217da4617c832afcd7ca90c88b06c200dc23b.tar.gz rneovim-2e1217da4617c832afcd7ca90c88b06c200dc23b.tar.bz2 rneovim-2e1217da4617c832afcd7ca90c88b06c200dc23b.zip  | |
'inccommand': buftype=nofile, restore cursor/view
- Use a standard scratch buffer instead of a new 'buftype', functions
  like curbufIsChanged() already have special handling for scratch bufs.
- Cleanup some stuff from the previous merge.
- Add support for :smagic, :snomagic. Closes #5578
Diffstat (limited to 'src/nvim/ex_getln.c')
| -rw-r--r-- | src/nvim/ex_getln.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 17693ecfc8..8ddb1047c7 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -5147,7 +5147,9 @@ static int ex_window(void)    cmdwin_type = get_cmdline_type();    // Create empty command-line buffer. -  buf_open_special(0, "[Command Line]", "nofile"); +  buf_open_scratch(0, "[Command Line]"); +  // Command-line buffer has bufhidden=wipe, unlike a true "scratch" buffer. +  set_option_value((char_u *)"bh", 0L, (char_u *)"wipe", OPT_LOCAL);    curwin->w_p_rl = cmdmsg_rl;    cmdmsg_rl = false;    curbuf->b_p_ma = true;  | 
