Changeset d83621c4 for commands.c


Ignore:
Timestamp:
Mar 23, 2010, 5:23:43 PM (15 years ago)
Author:
Nelson Elhage <nelhage@ksplice.com>
Branches:
master, release-1.10, 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.
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.