Changeset 8dfb59c for functions.c
- Timestamp:
- Mar 23, 2010, 5:23:43 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 38cc669
- Parents:
- 1b1cd2c
- git-author:
- Nelson Elhage <nelhage@mit.edu> (03/04/10 09:41:04)
- git-committer:
- Nelson Elhage <nelhage@ksplice.com> (03/23/10 17:23:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r1b1cd2c r8dfb59c 296 296 297 297 owl_editwin_set_cbdata(owl_global_get_typwin(&g), data, cleanup); 298 owl_ global_set_buffercallback(&g, callback);298 owl_editwin_set_callback(owl_global_get_typwin(&g), callback); 299 299 owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti"); 300 300 } … … 312 312 noun); 313 313 314 owl_function_start_edit_win(line, callback, NULL, NULL); 315 owl_global_set_buffercommand(&g, line); 314 owl_function_start_edit_win(line, callback, 315 owl_strdup(line), 316 owl_free); 316 317 } 317 318 … … 349 350 350 351 void owl_callback_zwrite(owl_editwin *e) { 351 owl_function_zwrite(owl_editwin_get_command(e), 352 char *command = owl_editwin_get_cbdata(e); 353 owl_function_zwrite(command, 352 354 owl_editwin_get_text(e)); 353 355 } … … 447 449 448 450 void owl_callback_aimwrite(owl_editwin *e) { 449 owl_function_aimwrite(owl_editwin_get_command(e), 451 char *command = owl_editwin_get_cbdata(e); 452 owl_function_aimwrite(command, 450 453 owl_editwin_get_text(e)); 451 454 } … … 882 885 883 886 void owl_callback_aimlogin(owl_editwin *e) { 884 owl_function_aimlogin(owl_editwin_get_command(e), 887 char *user = owl_editwin_get_cbdata(e); 888 owl_function_aimlogin(user, 885 889 owl_editwin_get_text(e)); 886 890 }
Note: See TracChangeset
for help on using the changeset viewer.