After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 332861 - Python console history misses last entry
Python console history misses last entry
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
2.13.x
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-28 17:11 UTC by Don Scorgie
Modified: 2019-03-23 20:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Fix pythonconsole history (2.19 KB, patch)
2006-02-28 17:49 UTC, Steve Frécinaux
committed Details | Review

Description Don Scorgie 2006-02-28 17:11:02 UTC
Please describe the problem:
The python console misses the previous entry in its history.

Steps to reproduce:
1. Open the python console in the bottom pane
2. Enter:
print "Hello World"<return>
print "Goodbye cruel world"<return>
3. Press up arrow


Actual results:
The first command run is shown in the entry box (i.e. print "Hello World")

Expected results:
The second command shown (i.e. print "Goodbye cruel world")

Does this happen every time?


Other information:
Comment 1 Paolo Borelli 2006-02-28 17:20:53 UTC
Yes, you are right... the code is cut and pasted from epiphany's python console though... I am not sure where it broke.

/me should prod kikidonk into fixing it


To be honest I am not really fond of the current python console... nud's pyterminal plugin at http://tw.apinc.org/gedit/ is better, but feature freeze didn't allow us to switch
Comment 2 Steve Frécinaux 2006-02-28 17:49:59 UTC
Created attachment 60332 [details] [review]
Fix pythonconsole history

In the mean time, here is a patch which fixes the history.
Comment 3 Steve Frécinaux 2006-02-28 18:01:38 UTC
Patch was committed, it should work now :-)
Comment 4 Christian Persch 2006-02-28 20:28:47 UTC
Does epiphany's copy need the same fix?
Comment 5 Paolo Borelli 2006-02-28 20:53:43 UTC
By looking at the code: yes. By trying it out: no.

No idea why the epi version is not affected... nud?
Comment 6 Steve Frécinaux 2006-02-28 20:59:36 UTC
I really have no idea, sorry.