# HG changeset patch # User jwe # Date 1191262401 0 # Node ID cf41866340d377bc2492b82e9d42a182c260076d # Parent 46d1ad37d943a1ce214ec9a0e7a9b4bc082aa901 [project @ 2007-10-01 18:13:20 by jwe] diff -r 46d1ad37d943 -r cf41866340d3 liboctave/ChangeLog --- 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 + + * cmd-edit.cc (command_editor::do_decode_prompt_string): Don't + insert extra '\001' when decoding \[ and \]. + 2007-09-26 David Bateman * dMatrix.cc (lssolve): Replace the use of xGELSS with xGELSY with diff -r 46d1ad37d943 -r cf41866340d3 liboctave/cmd-edit.cc --- 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 ());