Changeset 2a17b63 for functions.c
- Timestamp:
- Jan 7, 2010, 6:54:15 PM (15 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r8a2815b r2a17b63 301 301 owl_editwin_set_cbdata(owl_global_get_typwin(&g), data); 302 302 owl_global_set_buffercallback(&g, callback); 303 owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti"); 303 304 } 304 305 … … 1301 1302 1302 1303 owl_popwin_up(pw); 1304 owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless"); 1303 1305 owl_viewwin_init_text(v, owl_popwin_get_curswin(pw), 1304 1306 owl_popwin_get_lines(pw), owl_popwin_get_cols(pw), … … 1318 1320 1319 1321 owl_popwin_up(pw); 1322 owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless"); 1320 1323 owl_viewwin_init_fmtext(v, owl_popwin_get_curswin(pw), 1321 1324 owl_popwin_get_lines(pw), owl_popwin_get_cols(pw), … … 1940 1943 owl_editwin_redisplay(tw, 0); 1941 1944 1942 owl_context_set_editline(owl_global_get_context(&g), tw); 1943 owl_function_activate_keymap("editline"); 1945 owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline"); 1944 1946 } 1945 1947 … … 1957 1959 owl_editwin_redisplay(tw, 0); 1958 1960 1959 owl_context_set_editresponse(owl_global_get_context(&g), tw); 1960 owl_function_activate_keymap("editresponse"); 1961 owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editline"); 1961 1962 } 1962 1963 … … 1975 1976 owl_editwin_redisplay(tw, 0); 1976 1977 1977 owl_context_set_editresponse(owl_global_get_context(&g), tw); 1978 owl_function_activate_keymap("editresponse"); 1978 owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse"); 1979 1979 } 1980 1980 … … 2830 2830 if (direction==0) { 2831 2831 owl_list_append_element(fl, f); 2832 }2833 }2834 2835 void owl_function_activate_keymap(const char *keymap)2836 {2837 if (!owl_keyhandler_activate(owl_global_get_keyhandler(&g), keymap)) {2838 owl_function_error("Unable to activate keymap '%s'", keymap);2839 2832 } 2840 2833 }
Note: See TracChangeset
for help on using the changeset viewer.