Le 13/08/2016 à 19:35, larice a écrit : > Package: libedit2 > Version: jessie + stretch > Severity: normal > Tags: upstream > > Dear Maintainer, > > * What led up to the situation? > Using debian package ngspice. > > * What exactly did you do (or not do) that was effective (or ineffective)? > The debian package ngspice is configured to use libedit (--with-libedit). > ngspice uses the libedit function where_history() to format a prompt > for the next command. > The prompt is expected to increment with every entered command. > It does not so due to this bug. If ngspice is compiled to use libreadline > instead of libedit, then it does work. > I tried to work around, using history_base + history_length instead of > where_history(). > This does almost work. But ngspice calls read_history() (part of libedit) > to read the history from a file. And the implementation if read_history() > in libedit does not update history_length, causing the very first prompt > being incorrect. I think you should report this bug directly to upstream as it is not a packaging issue.
S