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 |
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); |
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); |