Le 12/05/11 14:38, Vincent van Ravesteijn a écrit :
+ case LFUN_FILE_INSERT_PLAINTEXT_PARA:
+ case LFUN_FILE_INSERT_PLAINTEXT: {
+ bool const as_paragraph = (act == LFUN_FILE_INSERT_PLAINTEXT_PARA);
+ string const fname = to_utf8(cmd.argument());
+ if (!FileName::isAbsolute(fname))
+ dr.setMessage(_("Absolute filename expected."));

Why not assert directly? This is not supposed to happen at all.

I don't want to put an assertion there, because the user is of course
free to enter a command in the command buffer with a relative filename.
An assertion seems a bit too much of a punishment.

But this is normally caught by getStatus before invoking dispatch.

JMarc

Reply via email to