Changeset 8df36cc for commands.c
- Timestamp:
- Jul 3, 2002, 6:56:07 PM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 10b866d
- Parents:
- 217a43e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r217a43e r8df36cc 1151 1151 int edit=0; 1152 1152 1153 if (argc ==2 && !strcmp("-e", argv[1])) {1153 if (argc>=2 && !strcmp("-e", argv[1])) { 1154 1154 edit=1; 1155 1155 argv++; … … 1532 1532 void owl_command_editline_done(owl_editwin *e) { 1533 1533 owl_history *hist=owl_global_get_history(&g); 1534 char *rv ;1534 char *rv, *cmd; 1535 1535 1536 1536 owl_global_set_typwin_inactive(&g); 1537 1537 owl_history_store(hist, owl_editwin_get_text(e)); 1538 1538 owl_history_reset(hist); 1539 rv = owl_function_command(owl_editwin_get_text(e)); 1540 1541 /* if we're still in ONELINE mode we can clear the buffer */ 1542 if (owl_editwin_get_style(e)==OWL_EDITWIN_STYLE_ONELINE) { 1543 owl_editwin_fullclear(e); 1544 } 1545 1539 cmd = owl_strdup(owl_editwin_get_text(e)); 1540 owl_editwin_fullclear(e); 1541 rv = owl_function_command(cmd); 1542 owl_free(cmd); 1543 1546 1544 wnoutrefresh(owl_editwin_get_curswin(e)); 1547 1545 owl_global_set_needrefresh(&g);
Note: See TracChangeset
for help on using the changeset viewer.