mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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 #10295)
This commit is contained in:
committed by
Bram Moolenaar
parent
05cf63e9bd
commit
51d04d16f2
14
src/typval.c
14
src/typval.c
@@ -359,6 +359,20 @@ tv_get_float(typval_T *varp)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Give an error and return FAIL unless "args[idx]" is unknown
|
||||
*/
|
||||
int
|
||||
check_for_unknown_arg(typval_T *args, int idx)
|
||||
{
|
||||
if (args[idx].v_type != VAR_UNKNOWN)
|
||||
{
|
||||
semsg(_(e_too_many_arguments), idx + 1);
|
||||
return FAIL;
|
||||
}
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Give an error and return FAIL unless "args[idx]" is a string.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user