Mercurial > vim
comparison src/eval.c @ 844:d3bbb5dd3913 v7.0f02
updated for version 7.0f02
author | vimboss |
---|---|
date | Thu, 27 Apr 2006 00:02:13 +0000 |
parents | a209672376fd |
children | db44f7b81373 |
comparison
equal
deleted
inserted
replaced
843:9f279ebda751 | 844:d3bbb5dd3913 |
---|---|
339 {VV_NAME("beval_text", VAR_STRING), VV_RO}, | 339 {VV_NAME("beval_text", VAR_STRING), VV_RO}, |
340 {VV_NAME("scrollstart", VAR_STRING), 0}, | 340 {VV_NAME("scrollstart", VAR_STRING), 0}, |
341 {VV_NAME("swapname", VAR_STRING), VV_RO}, | 341 {VV_NAME("swapname", VAR_STRING), VV_RO}, |
342 {VV_NAME("swapchoice", VAR_STRING), 0}, | 342 {VV_NAME("swapchoice", VAR_STRING), 0}, |
343 {VV_NAME("swapcommand", VAR_STRING), VV_RO}, | 343 {VV_NAME("swapcommand", VAR_STRING), VV_RO}, |
344 {VV_NAME("char", VAR_STRING), VV_RO}, | |
344 }; | 345 }; |
345 | 346 |
346 /* shorthand */ | 347 /* shorthand */ |
347 #define vv_type vv_di.di_tv.v_type | 348 #define vv_type vv_di.di_tv.v_type |
348 #define vv_nr vv_di.di_tv.vval.v_number | 349 #define vv_nr vv_di.di_tv.vval.v_number |
8998 { | 8999 { |
8999 int remap = TRUE; | 9000 int remap = TRUE; |
9000 char_u *keys, *flags; | 9001 char_u *keys, *flags; |
9001 char_u nbuf[NUMBUFLEN]; | 9002 char_u nbuf[NUMBUFLEN]; |
9002 int typed = FALSE; | 9003 int typed = FALSE; |
9004 char_u *keys_esc; | |
9003 | 9005 |
9004 rettv->vval.v_number = 0; | 9006 rettv->vval.v_number = 0; |
9005 keys = get_tv_string(&argvars[0]); | 9007 keys = get_tv_string(&argvars[0]); |
9006 if (*keys != NUL) | 9008 if (*keys != NUL) |
9007 { | 9009 { |
9017 case 't': typed = TRUE; break; | 9019 case 't': typed = TRUE; break; |
9018 } | 9020 } |
9019 } | 9021 } |
9020 } | 9022 } |
9021 | 9023 |
9022 ins_typebuf(keys, (remap ? REMAP_YES : REMAP_NONE), | 9024 /* Need to escape K_SPECIAL and CSI before putting the string in the |
9025 * typeahead buffer. */ | |
9026 keys_esc = vim_strsave_escape_csi(keys); | |
9027 if (keys_esc != NULL) | |
9028 { | |
9029 ins_typebuf(keys_esc, (remap ? REMAP_YES : REMAP_NONE), | |
9023 typebuf.tb_len, !typed, FALSE); | 9030 typebuf.tb_len, !typed, FALSE); |
9024 typebuf_was_filled = TRUE; | 9031 vim_free(keys_esc); |
9032 typebuf_was_filled = TRUE; | |
9033 } | |
9025 } | 9034 } |
9026 } | 9035 } |
9027 | 9036 |
9028 /* | 9037 /* |
9029 * "filereadable()" function | 9038 * "filereadable()" function |