Mercurial > vim
comparison src/typval.c @ 28674:38f7a132bba3 v8.2.4861
patch 8.2.4861: it is not easy to restore saved mappings
Commit: https://github.com/vim/vim/commit/51d04d16f21e19d6eded98f9530d84089102f925
Author: Ernie Rael <errael@raelity.com>
Date: Wed May 4 15:40:22 2022 +0100
patch 8.2.4861: it is not easy to restore saved mappings
Problem: It is not easy to restore saved mappings.
Solution: Make mapset() accept a dict argument. (Ernie Rael, closes https://github.com/vim/vim/issues/10295)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 May 2022 16:45:03 +0200 |
parents | 53c608c7ea9e |
children | 723c7d940cba |
comparison
equal
deleted
inserted
replaced
28673:1bb2e8f5cc4b | 28674:38f7a132bba3 |
---|---|
356 tv_get_float(typval_T *varp) | 356 tv_get_float(typval_T *varp) |
357 { | 357 { |
358 return tv_get_float_chk(varp, NULL); | 358 return tv_get_float_chk(varp, NULL); |
359 } | 359 } |
360 #endif | 360 #endif |
361 | |
362 /* | |
363 * Give an error and return FAIL unless "args[idx]" is unknown | |
364 */ | |
365 int | |
366 check_for_unknown_arg(typval_T *args, int idx) | |
367 { | |
368 if (args[idx].v_type != VAR_UNKNOWN) | |
369 { | |
370 semsg(_(e_too_many_arguments), idx + 1); | |
371 return FAIL; | |
372 } | |
373 return OK; | |
374 } | |
361 | 375 |
362 /* | 376 /* |
363 * Give an error and return FAIL unless "args[idx]" is a string. | 377 * Give an error and return FAIL unless "args[idx]" is a string. |
364 */ | 378 */ |
365 int | 379 int |