Display feedback if no comment data in mod

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 12 years ago
parent eb60cbef13
commit 04e5b761f1
  1. 4
      src/commands.c
  2. 5
      src/info.c

@ -223,9 +223,7 @@ void read_command(xmp_context handle, struct xmp_module_info *mi, struct control
ctl->display = cmd;
break;
case 'c':
if (mi->comment != NULL) {
ctl->display = cmd;
}
ctl->display = cmd;
break;
case '>':
change_sequence(handle, mi, ctl, 1);

@ -316,6 +316,11 @@ void info_comment(struct xmp_module_info *mi)
{
char *c = mi->comment;
if (mi->comment == NULL) {
report("No comment.\n");
return;
}
while (*c != 0) {
report("> ");
do {

Loading…
Cancel
Save