Changeset 3dcccba for commands.c


Ignore:
Timestamp:
Jul 7, 2008, 6:23:18 AM (13 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
barnowl_perlaim
Children:
61abb18
Parents:
7d63a6c
Message:
This would probably work, except it doesn't compile.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r403198c r3dcccba  
    24702470void owl_command_editresponse_done(owl_editwin *e)
    24712471{
     2472  char *text = owl_strdup(owl_editwin_get_text(e));
     2473  void (*callback)(void *, char *) = owl_editwin_get_callback(e);
     2474  void *cbdata = owl_editwin_get_cbdata(e);
     2475
    24722476  owl_global_set_typwin_inactive(&g);
    24732477  owl_editwin_fullclear(e);
     
    24752479  owl_global_set_needrefresh(&g);
    24762480
    2477   owl_function_run_buffercommand();
     2481  callback(cbdata, text);
     2482  owl_free(text);
    24782483}
    24792484
     
    24862491  owl_history_reset(hist);
    24872492
    2488   owl_function_run_buffercommand();
     2493  owl_editwin_do_callback(e);
    24892494  owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE, NULL);
    24902495  owl_editwin_fullclear(e);
Note: See TracChangeset for help on using the changeset viewer.