ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/vendor/dialog/dist/editbox.c
(Generate patch)

Comparing vendor/dialog/dist/editbox.c (file contents):
Revision 10957 by laffer1, Fri Jun 15 16:18:16 2018 UTC vs.
Revision 10958 by laffer1, Fri Jun 15 16:21:14 2018 UTC

# Line 1 | Line 1
1   /*
2 < *  $Id: editbox.c,v 1.1.1.1 2011-12-18 03:01:46 laffer1 Exp $
2 > *  $Id: editbox.c,v 1.62 2013/03/17 15:03:41 tom Exp $
3   *
4   *  editbox.c -- implements the edit box
5   *
6 < *  Copyright 2007-2010,2011 Thomas E. Dickey
6 > *  Copyright 2007-2012,2013 Thomas E. Dickey
7   *
8   *  This program is free software; you can redistribute it and/or modify
9   *  it under the terms of the GNU Lesser General Public License, version 2.1
# Line 368 | Line 368 | dlg_editbox(const char *title,
368    retry:
369   #endif
370      show_buttons = TRUE;
371 <    state = dialog_vars.defaultno ? dlg_defaultno_button() : sTEXT;
371 >    state = dialog_vars.default_button >= 0 ? dlg_default_button() : sTEXT;
372      fkey = 0;
373  
374      dlg_button_layout(buttons, &mincols);
# Line 710 | Line 710 | dlg_editbox(const char *title,
710              dlg_add_result((*list)[n]);
711              dlg_add_separator();
712          }
713 +        dlg_add_last_key(-1);
714      }
715      free(buffer);
716      dlg_restore_vars(&save_vars);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines