comparison src/eval.c @ 7740:00fc76e6bd99 v7.4.1168

commit https://github.com/vim/vim/commit/f48aa160fdd7b8caa7678e1a2139244dd2bdc547 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 24 17:54:24 2016 +0100 patch 7.4.1168 Problem: This doesn't give the right result: eval(string(v:true)). (Nikolay Pavlov) Solution: Make the string "v:true" instead of "true".
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Jan 2016 18:00:06 +0100
parents 80ce794827c4
children 6069f43cea4e
comparison
equal deleted inserted replaced
7739:d0f70a9fdb72 7740:00fc76e6bd99
7823 static char * 7823 static char *
7824 get_var_special_name(int nr) 7824 get_var_special_name(int nr)
7825 { 7825 {
7826 switch (nr) 7826 switch (nr)
7827 { 7827 {
7828 case VVAL_FALSE: return "false"; 7828 case VVAL_FALSE: return "v:false";
7829 case VVAL_TRUE: return "true"; 7829 case VVAL_TRUE: return "v:true";
7830 case VVAL_NONE: return "none"; 7830 case VVAL_NONE: return "v:none";
7831 case VVAL_NULL: return "null"; 7831 case VVAL_NULL: return "v:null";
7832 } 7832 }
7833 EMSG2(_(e_intern2), "get_var_special_name()"); 7833 EMSG2(_(e_intern2), "get_var_special_name()");
7834 return "42"; 7834 return "42";
7835 } 7835 }
7836 7836