Changeset ed380eb


Ignore:
Timestamp:
Jul 17, 2010, 7:27:07 AM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.6
Children:
28cd9088
Parents:
6758c74
git-author:
Nelson Elhage <nelhage@mit.edu> (05/25/10 13:31:17)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/17/10 07:27:07)
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

    rd699541 red380eb  
    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.