Changeset 10b866d for global.c


Ignore:
Timestamp:
Jul 8, 2002, 10:37:21 PM (22 years ago)
Author:
Erik Nygren <nygren@mit.edu>
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
Message:
* Fixed preservation of e->dotsend across owl_editwin_clear().

* Added history for multiline edit windows (eg, for zephyr composition).
  The M-n and M-p keys will cycle through the history ring.
  In particular, it is now possible to edit the command line
  of a zephyr being composed:  C-c it and restart it
  and then M-p to get the aborted composition back.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r1aee7d9 r10b866d  
    4242  g->rightshift=0;
    4343
    44   owl_editwin_init(&(g->tw), NULL, owl_global_get_typwin_lines(g), g->cols, OWL_EDITWIN_STYLE_ONELINE);
     44  owl_editwin_init(&(g->tw), NULL, owl_global_get_typwin_lines(g), g->cols, OWL_EDITWIN_STYLE_ONELINE, NULL);
    4545
    4646  owl_keyhandler_init(&g->kh);
     
    6565  owl_global_set_userclue(g, OWL_USERCLUE_NONE);
    6666  owl_global_set_no_have_config(g);
    67   owl_history_init(&(g->hist));
     67  owl_history_init(&(g->msghist));
     68  owl_history_init(&(g->cmdhist));
    6869  g->nextmsgid=0;
    6970
     
    486487/* history */
    487488
    488 owl_history *owl_global_get_history(owl_global *g) {
    489   return(&(g->hist));
     489owl_history *owl_global_get_msg_history(owl_global *g) {
     490  return(&(g->msghist));
     491}
     492
     493owl_history *owl_global_get_cmd_history(owl_global *g) {
     494  return(&(g->cmdhist));
    490495}
    491496
Note: See TracChangeset for help on using the changeset viewer.