Changeset 10b866d for functions.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
  • functions.c

    r217a43e r10b866d  
    124124  /* create and setup the editwin */
    125125  e=owl_global_get_typwin(&g);
    126   owl_editwin_new_style(e, OWL_EDITWIN_STYLE_MULTILINE);
     126  owl_editwin_new_style(e, OWL_EDITWIN_STYLE_MULTILINE,
     127                        owl_global_get_msg_history(&g));
    127128
    128129  if (!owl_global_get_lockout_ctrld(&g)) {
     
    14161417
    14171418      if (enter) {
    1418         owl_history_store(owl_global_get_history(&g), buff);
    1419         owl_function_zwrite_setup(buff);
    1420         owl_global_set_buffercommand(&g, buff);
     1419        owl_history *hist = owl_global_get_cmd_history(&g);
     1420        owl_history_store(hist, buff);
     1421        owl_history_reset(hist);
     1422        owl_function_command_norv(buff);
    14211423      } else {
    14221424        owl_function_start_command(buff);
     
    14471449  tw=owl_global_get_typwin(&g);
    14481450  owl_global_set_typwin_active(&g);
     1451  owl_editwin_new_style(tw, OWL_EDITWIN_STYLE_ONELINE,
     1452                        owl_global_get_cmd_history(&g));
     1453
    14491454  owl_editwin_set_locktext(tw, "command: ");
    14501455  owl_global_set_needrefresh(&g);
Note: See TracChangeset for help on using the changeset viewer.