From a65a028067685138da2a187292f1034cbe2f7711 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 3 Jan 2015 20:23:00 +0100 Subject: [PATCH] src/main.c, prompt(), drop ancient workaround for editline v2.9 thats dead now for some years. --- src/main.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main.c b/src/main.c index 01b3ae00d..78f53c73c 100644 --- a/src/main.c +++ b/src/main.c @@ -528,22 +528,7 @@ prompt(void) while (*s) { switch (strip(*s)) { case '!': -#if defined(HAVE_BSDEDITLINE) && 0 - { - /* SJB In the present version of editline (v2.9) - it seems that where_history() is broken. - This is a hack that works round this problem. - WARNING: It may fail to work in the future - as it relies on undocumented structure */ - /* some years later, it fails indeed, (v2.11 on debian) */ - int where = 0; - HIST_ENTRY *he = current_history(); - if(he!=NULL) where = *(int*)(he->data); - p += sprintf(p, "%d", where + 1); - } -#else p += sprintf(p, "%d", where_history() + 1); -#endif /* HAVE_BSDEDITLINE*/ break; case '\\': if (s[1])