Mercurial > vim
comparison src/option.c @ 1757:f10fe14748e2 v7.2.055
updated for version 7.2-055
author | vimboss |
---|---|
date | Fri, 28 Nov 2008 20:29:07 +0000 |
parents | 5a7384b9ca66 |
children | b209c3f94ab7 |
comparison
equal
deleted
inserted
replaced
1756:5fafc42c22d2 | 1757:f10fe14748e2 |
---|---|
8230 varp = get_varp_scope(&(options[opt_idx]), opt_flags); | 8230 varp = get_varp_scope(&(options[opt_idx]), opt_flags); |
8231 if (varp != NULL) /* hidden option is not changed */ | 8231 if (varp != NULL) /* hidden option is not changed */ |
8232 { | 8232 { |
8233 if (number == 0 && string != NULL) | 8233 if (number == 0 && string != NULL) |
8234 { | 8234 { |
8235 int index; | 8235 int idx; |
8236 | 8236 |
8237 /* Either we are given a string or we are setting option | 8237 /* Either we are given a string or we are setting option |
8238 * to zero. */ | 8238 * to zero. */ |
8239 for (index = 0; string[index] == '0'; ++index) | 8239 for (idx = 0; string[idx] == '0'; ++idx) |
8240 ; | 8240 ; |
8241 if (string[index] != NUL || index == 0) | 8241 if (string[idx] != NUL || idx == 0) |
8242 { | 8242 { |
8243 /* There's another character after zeros or the string | 8243 /* There's another character after zeros or the string |
8244 * is empty. In both cases, we are trying to set a | 8244 * is empty. In both cases, we are trying to set a |
8245 * num option using a string. */ | 8245 * num option using a string. */ |
8246 EMSG3(_("E521: Number required: &%s = '%s'"), | 8246 EMSG3(_("E521: Number required: &%s = '%s'"), |