# HG changeset patch # User Matti Hamalainen # Date 1317019182 -10800 # Node ID 50c9fa99e7b4713a23f7c7d8e8f254ff2efca247 # Parent a23d305fd17babbb425f31372f6d7f431833017e Cleanups. diff -r a23d305fd17b -r 50c9fa99e7b4 src/entry.cc --- a/src/entry.cc Mon Sep 26 09:36:54 2011 +0300 +++ b/src/entry.cc Mon Sep 26 09:39:42 2011 +0300 @@ -116,16 +116,14 @@ else if (is_ordinary(key) && strlen(buf) < bufmaxlen) { if (firstkey) + { if (key == ' ') // Kludge : hit space to append to initial value continue; else *buf = '\0'; + } al_sapc(buf, key, bufmaxlen); } - else - { - Beep(); - } } is.key = 0; // Shouldn't have to do that but EditorLoop() is broken diff -r a23d305fd17b -r 50c9fa99e7b4 src/entry2.cc --- a/src/entry2.cc Mon Sep 26 09:36:54 2011 +0300 +++ b/src/entry2.cc Mon Sep 26 09:39:42 2011 +0300 @@ -482,31 +482,7 @@ precision = 10 * precision + dectoi(*p++); } } - // Get the optional modifier (hh, h, l or Z) - _field_flags_t size = FF_INT; - if (*p == 'h') - { - if (p[1] == 'h') - { - size = FF_CHAR; - p += 2; - } - else - { - size = FF_SHORT; - p++; - } - } - else if (*p == 'Z') - { - size = FF_SIZE_T; - p++; - } - else if (*p == 'l') - { - size = FF_LONG; - p++; - } + // Get the type (diousSxX) if (*p == 'd' || *p == 'i' || *p == 'o' || *p == 'x' || *p == 'X') type = 'd';