Changeset 89ce405 for commands.c


Ignore:
Timestamp:
May 25, 2010, 10:55:20 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
13ebf92
Parents:
922f589
git-author:
Nelson Elhage <nelhage@mit.edu> (05/25/10 13:31:17)
git-committer:
Nelson Elhage <nelhage@mit.edu> (05/25/10 22:55:20)
Message:
owl_command_view: Fix an infinite loop on 'view -r args'.

owl_command_view should really be cleaned up a lot, but this fixes the
immediate bug. We already handle the 'view -r' case specially near the
top, and 'view -r' with other args has clearly never worked, so let's
just deprecate it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rd544237 r89ce405  
    21842184      argc--;
    21852185      argv++;
    2186     } else if (!strcmp(argv[0], "-r")) {
    2187       const char *foo;
    2188       foo=owl_function_create_negative_filter(owl_view_get_filtname(owl_global_get_current_view(&g)));
    2189       owl_function_change_currentview_filter(foo);
    21902186    } else if (!strcmp(argv[0], "-s")) {
    21912187      if (argc<2) {
Note: See TracChangeset for help on using the changeset viewer.