Ticket #130 (new defect)

Opened 2 years ago

Last modified 1 year ago

Completion of indented commands in history

Reported by: stefanv Assigned to: jstenar
Priority: normal Milestone: 0.9.0
Component: ipython Version:
Severity: minor Keywords:
Cc:

Description (Last modified by fperez)

When using cpaste, the readline search history does not reflect the executed code. I.e., if you do

In [1]: cpaste
Pasting code; enter '--' alone on the line to stop.
: def a():
:    x = 1
:--

and then type

In [2]: x =<up-arrow>

it does not complete. Rather

In [2]:     x =<up-arrow>

does. It would be useful if command completion could take leading spaces in the history into account.

Change History

03/20/07 16:07:56 changed by stefanv

That should read

{{ In [1]: cpaste Pasting code; enter '--' alone on the line to stop. : def a(): : x = 1 :-- }}

03/20/07 16:22:53 changed by fperez

  • description changed.

08/20/07 11:07:07 changed by vivainio

  • owner changed from fperez to jstenar.

Wouldn't this be a readline/pyreadline fix?