Changeset 5934b87 for functions.c


Ignore:
Timestamp:
Mar 23, 2010, 5:23:43 PM (12 years ago)
Author:
Nelson Elhage <nelhage@ksplice.com>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
59ab8dd
Parents:
d83621c4
git-author:
Nelson Elhage <nelhage@ksplice.com> (03/06/10 17:54:44)
git-committer:
Nelson Elhage <nelhage@ksplice.com> (03/23/10 17:23:43)
Message:
Merge editline:done with edit:done as well.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rd83621c4 r5934b87  
    19001900}
    19011901
     1902void owl_callback_command(owl_editwin *e)
     1903{
     1904  char *rv;
     1905  const char *line = owl_editwin_get_text(e);
     1906
     1907  rv = owl_function_command(line);
     1908   if (rv) {
     1909    owl_function_makemsg("%s", rv);
     1910    owl_free(rv);
     1911  }
     1912}
     1913
    19021914void owl_function_start_command(const char *line)
    19031915{
     
    19141926
    19151927  owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline");
     1928  owl_editwin_set_callback(tw, owl_callback_command);
    19161929}
    19171930
Note: See TracChangeset for help on using the changeset viewer.