Changeset 10b866d for commands.c
- Timestamp:
- Jul 8, 2002, 10:37:21 PM (23 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:
- e1c4636
- Parents:
- 8df36cc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r8df36cc r10b866d 593 593 594 594 OWLCMD_VOID_CTX("edit:history-next", owl_command_edit_history_next, 595 OWL_CTX_EDIT LINE,595 OWL_CTX_EDIT, 596 596 "replaces the text with the previous history", 597 597 "", ""), 598 598 599 599 OWLCMD_VOID_CTX("edit:history-prev", owl_command_edit_history_prev, 600 OWL_CTX_EDIT LINE,600 OWL_CTX_EDIT, 601 601 "replaces the text with the previous history", 602 602 "", ""), … … 1478 1478 1479 1479 void owl_command_edit_cancel(owl_editwin *e) { 1480 owl_history *hist; 1481 1480 1482 owl_function_makemsg("Command cancelled."); 1483 1484 hist=owl_editwin_get_history(e); 1485 owl_history_store(hist, owl_editwin_get_text(e)); 1486 owl_history_reset(hist); 1487 1481 1488 owl_editwin_fullclear(e); 1482 1489 owl_global_set_needrefresh(&g); 1483 1490 wnoutrefresh(owl_editwin_get_curswin(e)); 1484 1491 owl_global_set_typwin_inactive(&g); 1485 owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE );1492 owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE, NULL); 1486 1493 } 1487 1494 … … 1490 1497 char *ptr; 1491 1498 1492 hist=owl_ global_get_history(&g);1499 hist=owl_editwin_get_history(e); 1493 1500 if (!owl_history_is_touched(hist)) { 1494 1501 owl_history_store(hist, owl_editwin_get_text(e)); … … 1510 1517 char *ptr; 1511 1518 1512 hist=owl_ global_get_history(&g);1519 hist=owl_editwin_get_history(e); 1513 1520 ptr=owl_history_get_next(hist); 1514 1521 if (ptr) { … … 1531 1538 1532 1539 void owl_command_editline_done(owl_editwin *e) { 1533 owl_history *hist=owl_ global_get_history(&g);1540 owl_history *hist=owl_editwin_get_history(e); 1534 1541 char *rv, *cmd; 1535 1542 1536 owl_global_set_typwin_inactive(&g);1537 1543 owl_history_store(hist, owl_editwin_get_text(e)); 1538 1544 owl_history_reset(hist); 1545 owl_global_set_typwin_inactive(&g); 1539 1546 cmd = owl_strdup(owl_editwin_get_text(e)); 1540 1547 owl_editwin_fullclear(e); … … 1552 1559 1553 1560 void owl_command_editmulti_done(owl_editwin *e) { 1561 owl_history *hist=owl_editwin_get_history(e); 1562 1563 owl_history_store(hist, owl_editwin_get_text(e)); 1564 owl_history_reset(hist); 1565 1554 1566 owl_function_run_buffercommand(); 1555 owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE );1567 owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE, NULL); 1556 1568 owl_editwin_fullclear(e); 1557 1569 owl_global_set_typwin_inactive(&g);
Note: See TracChangeset
for help on using the changeset viewer.