Changeset 2a17b63 for commands.c


Ignore:
Timestamp:
Jan 7, 2010, 6:54:15 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
10557e6
Parents:
a999d9e
git-author:
Nelson Elhage <nelhage@mit.edu> (12/30/09 17:52:20)
git-committer:
Nelson Elhage <nelhage@mit.edu> (01/07/10 18:54:15)
Message:
Push and pop contexts whenever we change context.

This allows us to get rid of the awful hack in owl_process_input_char,
and opens the path to being able to invoke popup windows from the
editwin and vice versa (In fact, you can now do so without
segfaulting, although the display layer does not yet quite do the
right thing).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r6700c605 r2a17b63  
    26652665  owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE, NULL);
    26662666
    2667   owl_function_activate_keymap("recv");
     2667  owl_global_pop_context(&g);
    26682668}
    26692669
     
    27232723  owl_history_reset(hist);
    27242724  owl_global_set_typwin_inactive(&g);
     2725  owl_global_pop_context(&g);
    27252726  cmd = owl_strdup(owl_editwin_get_text(e));
    27262727  owl_editwin_fullclear(e);
     
    27432744
    27442745  owl_global_set_typwin_inactive(&g);
     2746  owl_global_pop_context(&g);
    27452747  owl_editwin_fullclear(e);
    27462748  wnoutrefresh(owl_editwin_get_curswin(e));
     
    27602762  owl_editwin_fullclear(e);
    27612763  owl_global_set_typwin_inactive(&g);
     2764  owl_global_pop_context(&g);
    27622765  owl_global_set_needrefresh(&g);
    27632766  wnoutrefresh(owl_editwin_get_curswin(e));
     
    27812784{
    27822785  owl_popwin_close(owl_global_get_popwin(&g));
     2786  owl_global_pop_context(&g);
    27832787  owl_viewwin_free(vw);
    27842788  owl_global_set_needrefresh(&g);
Note: See TracChangeset for help on using the changeset viewer.