- 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:
- 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
-
editwin.c
r1b1cd2c r8dfb59c 35 35 oe_excursion *excursions; 36 36 37 char *command;38 37 void (*callback)(struct _owl_editwin*); 39 38 void (*destroy_cbdata)(void *); … … 77 76 owl_free(e->buff); 78 77 owl_free(e->killbuf); 79 owl_free(e->command);80 78 /* just in case someone forgot to clean up */ 81 79 while (e->excursions) { … … 181 179 { 182 180 e->dotsend=1; 183 }184 185 void owl_editwin_set_command(owl_editwin *e, const char *command)186 {187 if(e->command) owl_free(e->command);188 e->command = owl_strdup(command);189 }190 191 const char *owl_editwin_get_command(owl_editwin *e)192 {193 if(e->command) return e->command;194 return "";195 181 } 196 182
Note: See TracChangeset
for help on using the changeset viewer.