Changeset 5934b87 for commands.c
- Timestamp:
- Mar 23, 2010, 5:23:43 PM (14 years ago)
- Branches:
- master, release-1.10, 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rd83621c4 r5934b87 906 906 "", ""), 907 907 908 OWLCMD_VOID_CTX("editline:done", owl_command_editline_done, 909 OWL_CTX_EDITLINE, 910 "completes the command (eg, executes command being composed)", 911 "", ""), 912 908 OWLCMD_ALIAS ("editline:done", "edit:done"), 913 909 OWLCMD_ALIAS ("editresponse:done", "edit:done"), 914 910 … … 2750 2746 } 2751 2747 2752 void owl_command_editline_done(owl_editwin *e)2753 {2754 owl_history *hist=owl_editwin_get_history(e);2755 char *rv, *cmd;2756 2757 owl_history_store(hist, owl_editwin_get_text(e));2758 owl_history_reset(hist);2759 cmd = owl_strdup(owl_editwin_get_text(e));2760 2761 owl_global_set_typwin_inactive(&g);2762 owl_editwin_delete(e);2763 owl_global_pop_context(&g);2764 2765 rv = owl_function_command(cmd);2766 owl_free(cmd);2767 2768 owl_global_set_needrefresh(&g);2769 2770 if (rv) {2771 owl_function_makemsg("%s", rv);2772 owl_free(rv);2773 }2774 }2775 2776 2777 2748 void owl_command_edit_done(owl_editwin *e) 2778 2749 {
Note: See TracChangeset
for help on using the changeset viewer.