Mercurial > octave-nkf
changeset 6940:cf41866340d3
[project @ 2007-10-01 18:13:20 by jwe]
author | jwe |
---|---|
date | Mon, 01 Oct 2007 18:13:21 +0000 |
parents | 46d1ad37d943 |
children | 3d555cd5ad0f |
files | liboctave/ChangeLog liboctave/cmd-edit.cc |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog Mon Oct 01 16:12:20 2007 +0000 +++ b/liboctave/ChangeLog Mon Oct 01 18:13:21 2007 +0000 @@ -1,3 +1,8 @@ +2007-10-01 John W. Eaton <jwe@octave.org> + + * cmd-edit.cc (command_editor::do_decode_prompt_string): Don't + insert extra '\001' when decoding \[ and \]. + 2007-09-26 David Bateman <dbateman@free.fr> * dMatrix.cc (lssolve): Replace the use of xGELSS with xGELSY with
--- a/liboctave/cmd-edit.cc Mon Oct 01 16:12:20 2007 +0000 +++ b/liboctave/cmd-edit.cc Mon Oct 01 18:13:21 2007 +0000 @@ -1128,10 +1128,9 @@ case '[': case ']': { - temp.resize (2); + temp.resize (1); - temp[0] = '\001'; - temp[1] = ((c == '[') + temp[0] = ((c == '[') ? ::octave_rl_prompt_start_ignore () : ::octave_rl_prompt_end_ignore ());