Changeset 07b59ea for functions.c


Ignore:
Timestamp:
Jun 3, 2010, 2:58:30 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
e8128c5
Parents:
4dd115f
Message:
Maintain the cursor location with the context stack
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r40597e7 r07b59ea  
    292292  owl_editwin_set_cbdata(e, data, cleanup);
    293293  owl_editwin_set_callback(e, callback);
    294   owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti");
     294  owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti", owl_global_get_curs_typwin(&g));
    295295}
    296296
     
    12601260
    12611261  owl_popwin_up(pw);
    1262   owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless");
     1262  owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless", NULL);
    12631263  owl_viewwin_init_text(v, owl_popwin_get_content(pw), text);
    12641264}
     
    12731273
    12741274  owl_popwin_up(pw);
    1275   owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless");
     1275  owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless", NULL);
    12761276  owl_viewwin_init_fmtext(v, owl_popwin_get_content(pw), fm);
    12771277}
     
    18951895  owl_editwin_insert_string(tw, line);
    18961896
    1897   owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline");
     1897  owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline", owl_global_get_curs_typwin(&g));
    18981898  owl_editwin_set_callback(tw, owl_callback_command);
    18991899}
     
    19071907  owl_editwin_set_locktext(tw, line);
    19081908
    1909   owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse");
     1909  owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_global_get_curs_typwin(&g));
    19101910  return tw;
    19111911}
     
    19211921  owl_editwin_set_locktext(tw, line);
    19221922
    1923   owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse");
     1923  owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_global_get_curs_typwin(&g));
    19241924  return tw;
    19251925}
Note: See TracChangeset for help on using the changeset viewer.