Changeset 38cc669 for commands.c


Ignore:
Timestamp:
Mar 23, 2010, 5:23:43 PM (11 years ago)
Author:
Nelson Elhage <nelhage@ksplice.com>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0d17295
Parents:
8dfb59c
git-author:
Nelson Elhage <nelhage@mit.edu> (03/13/10 23:54:51)
git-committer:
Nelson Elhage <nelhage@ksplice.com> (03/23/10 17:23:43)
Message:
Create/destroy editwins rather than reusing a single one.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r8dfb59c r38cc669  
    25662566  /* if we get two arguments, ask for the password */
    25672567  if (argc==2) {
     2568    owl_function_start_password("AIM Password: ");
    25682569    owl_editwin_set_cbdata(owl_global_get_typwin(&g),
    25692570                           owl_strdup(argv[1]), owl_free);
    25702571    owl_editwin_set_callback(owl_global_get_typwin(&g),
    25712572                             owl_callback_aimlogin);
    2572     owl_function_start_password("AIM Password: ");
    25732573    return(NULL);
    25742574  } else {
     
    26992699  }
    27002700
    2701   owl_editwin_fullclear(e);
    27022701  owl_global_set_needrefresh(&g);
     2702  owl_global_pop_context(&g);
     2703
    27032704  owl_global_set_typwin_inactive(&g);
    2704   owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE, NULL);
    2705 
    2706   owl_global_pop_context(&g);
    27072705}
    27082706
     
    27612759  owl_history_store(hist, owl_editwin_get_text(e));
    27622760  owl_history_reset(hist);
     2761  cmd = owl_strdup(owl_editwin_get_text(e));
     2762
    27632763  owl_global_set_typwin_inactive(&g);
    27642764  owl_global_pop_context(&g);
    2765   cmd = owl_strdup(owl_editwin_get_text(e));
    2766   owl_editwin_fullclear(e);
     2765
    27672766  rv = owl_function_command(cmd);
    27682767  owl_free(cmd);
     
    27832782  owl_global_set_typwin_inactive(&g);
    27842783  owl_global_pop_context(&g);
    2785   owl_editwin_fullclear(e);
     2784
    27862785  owl_global_set_needrefresh(&g);
    27872786}
     
    27962795
    27972796  owl_function_run_buffercommand();
    2798   owl_editwin_new_style(e, OWL_EDITWIN_STYLE_ONELINE, NULL);
    2799   owl_editwin_fullclear(e);
     2797
    28002798  owl_global_set_typwin_inactive(&g);
    28012799  owl_global_pop_context(&g);
Note: See TracChangeset for help on using the changeset viewer.