summaryrefslogtreecommitdiff
path: root/source/ui_menu.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-09-25 13:13:05 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-09-25 13:13:05 +0000
commit95f993680be144ec40fa7f08002faf27a2e229a7 (patch)
treed1bf8e3174ffbe3e6bb332682b70c694b898da67 /source/ui_menu.c
parentea8394f51c74208866a891def93c55bd6cd3529e (diff)
Strip trailing whitespace as gi.args() expects.
Properly set maxChars value for input fields on Unix.
Diffstat (limited to 'source/ui_menu.c')
-rw-r--r--source/ui_menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/ui_menu.c b/source/ui_menu.c
index c8ad285..7ff4a42 100644
--- a/source/ui_menu.c
+++ b/source/ui_menu.c
@@ -274,7 +274,8 @@ FIELD CONTROL
*/
static void Field_Push( menuField_t *f ) {
- IF_Init( &f->field, f->width, MAX_FIELD_TEXT, f->cvar->string );
+ IF_Init( &f->field, f->width, MAX_FIELD_TEXT - 1 );
+ IF_Replace( &f->field, f->cvar->string );
}
static void Field_Pop( menuField_t *f ) {