Changeset 4cf7b1b


Ignore:
Timestamp:
Sep 18, 2010, 3:17:27 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
7ba2ad4
Parents:
6425d43
git-author:
David Benjamin <davidben@mit.edu> (07/31/10 20:11:47)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 15:17:27)
Message:
If owl_popwin_up fails, abort the command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rde6f317 r4cf7b1b  
    12401240  v=owl_global_get_viewwin(&g);
    12411241
    1242   owl_popwin_up(pw);
     1242  if (owl_popwin_up(pw) != 0) {
     1243    owl_function_error("Popwin already in use.");
     1244    return;
     1245  }
    12431246  owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless", NULL);
    12441247  owl_viewwin_init_text(v, owl_popwin_get_content(pw), text);
     
    12531256  v=owl_global_get_viewwin(&g);
    12541257
    1255   owl_popwin_up(pw);
     1258  if (owl_popwin_up(pw) != 0) {
     1259    owl_function_error("Popwin already in use.");
     1260    return;
     1261  }
    12561262  owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless", NULL);
    12571263  owl_viewwin_init_fmtext(v, owl_popwin_get_content(pw), fm);
  • popexec.c

    r07b59ea r4cf7b1b  
    2626  pe->vwin=v=owl_global_get_viewwin(&g);
    2727
    28   owl_popwin_up(pw);
     28  if (owl_popwin_up(pw) != 0) {
     29    owl_function_error("Popwin already in use.");
     30    return NULL;
     31  }
    2932  owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless", NULL);
    3033  owl_viewwin_init_text(v, owl_popwin_get_content(pw), "");
Note: See TracChangeset for help on using the changeset viewer.