Changeset d83621c4


Ignore:
Timestamp:
Mar 23, 2010, 5:23:43 PM (10 years ago)
Author:
Nelson Elhage <nelhage@ksplice.com>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
5934b87
Parents:
0d17295
git-author:
Nelson Elhage <nelhage@ksplice.com> (03/06/10 17:40:54)
git-committer:
Nelson Elhage <nelhage@ksplice.com> (03/23/10 17:23:43)
Message:
Call the editwin callback after deactivating the editwin.

This fixes at least two outstanding bugs: One, it is now possible to
spawn a new editwin from the editwin callback, and have the right
thing happen. Two, the callback now happens in the context we were in
before opening the editwin, not in editwin context.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r0d17295 rd83621c4  
    27002700
    27012701  owl_global_set_typwin_inactive(&g);
     2702  owl_editwin_delete(e);
    27022703}
    27032704
     
    27592760
    27602761  owl_global_set_typwin_inactive(&g);
     2762  owl_editwin_delete(e);
    27612763  owl_global_pop_context(&g);
    27622764
     
    27722774}
    27732775
     2776
    27742777void owl_command_edit_done(owl_editwin *e)
    27752778{
     
    27812784  }
    27822785
    2783   owl_function_run_buffercommand();
    2784 
    27852786  owl_global_set_typwin_inactive(&g);
    27862787  owl_global_pop_context(&g);
    27872788  owl_global_set_needrefresh(&g);
     2789
     2790  owl_editwin_do_callback(e);
     2791  owl_editwin_delete(e);
    27882792}
    27892793
  • functions.c

    r0d17295 rd83621c4  
    11831183}
    11841184
    1185 void owl_function_run_buffercommand(void)
    1186 {
    1187   owl_editwin_do_callback(owl_global_get_typwin(&g));
    1188 }
    1189 
    11901185void owl_function_debugmsg(const char *fmt, ...)
    11911186{
  • global.c

    r38cc669 rd83621c4  
    389389  g->typwinactive=0;
    390390
    391   owl_editwin_delete(g->tw);
    392391  werase(owl_global_get_curs_typwin(g));
    393392  g->tw = NULL;
Note: See TracChangeset for help on using the changeset viewer.