Mercurial > vim
comparison src/option.c @ 23272:a84e7abb0c92 v8.2.2182
patch 8.2.2182: Vim9: value of 'magic' is still relevant
Commit: https://github.com/vim/vim/commit/f4e2099e39ed4d71aed0f9a9579455aed5ec6cc2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 21 19:59:08 2020 +0100
patch 8.2.2182: Vim9: value of 'magic' is still relevant
Problem: Vim9: value of 'magic' is still relevant.
Solution: Always behave like 'magic' is on in Vim9 script (closes https://github.com/vim/vim/issues/7509)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 21 Dec 2020 20:00:06 +0100 |
parents | e82579016863 |
children | bb0c53f4ef8b |
comparison
equal
deleted
inserted
replaced
23271:50ebb4982f37 | 23272:a84e7abb0c92 |
---|---|
6994 wp->w_p_culopt_flags = culopt_flags_new; | 6994 wp->w_p_culopt_flags = culopt_flags_new; |
6995 | 6995 |
6996 return OK; | 6996 return OK; |
6997 } | 6997 } |
6998 #endif | 6998 #endif |
6999 | |
7000 /* | |
7001 * Get the value of 'magic' adjusted for Vim9 script. | |
7002 */ | |
7003 int | |
7004 magic_isset(void) | |
7005 { | |
7006 switch (magic_overruled) | |
7007 { | |
7008 case MAGIC_ON: return TRUE; | |
7009 case MAGIC_OFF: return FALSE; | |
7010 case MAGIC_NOT_SET: break; | |
7011 } | |
7012 #ifdef FEAT_EVAL | |
7013 if (in_vim9script()) | |
7014 return TRUE; | |
7015 #endif | |
7016 return p_magic; | |
7017 } |