Changeset 83e023e for commands.c


Ignore:
Timestamp:
Jul 23, 2011, 7:22:12 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
c40d11a
Parents:
e9a939b
git-author:
David Benjamin <davidben@mit.edu> (07/23/11 18:54:46)
git-committer:
David Benjamin <davidben@mit.edu> (07/23/11 19:22:12)
Message:
Don't attempt to switch filters in :view -d if invalid

Add return value to owl_function_create_filter and check before
switching.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    refeec7f r83e023e  
    21652165      myargv[i]=argv[i];
    21662166    }
    2167     owl_function_create_filter(argc, myargv);
    2168     owl_function_change_currentview_filter("owl-dynamic");
     2167    if (owl_function_create_filter(argc, myargv)) {
     2168      owl_function_change_currentview_filter("owl-dynamic");
     2169    }
    21692170    g_free(myargv);
    21702171    return NULL;
Note: See TracChangeset for help on using the changeset viewer.