X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fmodify-variables.c;h=e23d6a418dea7c34ae61d08532d681fc94aada67;hb=0499030ee8e638a481e6cb8d91646b7a88292da7;hp=e14b46e04fdd689b7cf0ff9740c9cb651ddfd64c;hpb=72c9c6a2f92e94779b2e55d0726568090411871c;p=pspp diff --git a/src/language/dictionary/modify-variables.c b/src/language/dictionary/modify-variables.c index e14b46e04f..e23d6a418d 100644 --- a/src/language/dictionary/modify-variables.c +++ b/src/language/dictionary/modify-variables.c @@ -303,18 +303,21 @@ cmd_modify_vars (struct lexer *lexer, struct dataset *ds) } already_encountered |= 4; + int start_ofs = lex_ofs (lexer) - 1; lex_match (lexer, T_EQUALS); if (!parse_variables (lexer, dataset_dict (ds), &drop_vars, &n_drop, PV_NONE)) goto done; + int end_ofs = lex_ofs (lexer) - 1; vm.drop_vars = drop_vars; vm.n_drop = n_drop; if (n_drop == dict_get_n_vars (dataset_dict (ds))) { - msg (SE, _("%s may not be used to delete all variables " - "from the active dataset dictionary. " - "Use %s instead."), "MODIFY VARS", "NEW FILE"); + lex_ofs_error (lexer, start_ofs, end_ofs, + _("%s may not be used to delete all variables " + "from the active dataset dictionary. " + "Use %s instead."), "MODIFY VARS", "NEW FILE"); goto done; } }