[GRASS-SVN] r61103 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 1 08:10:03 PDT 2014


Author: annakrat
Date: 2014-07-01 08:10:03 -0700 (Tue, 01 Jul 2014)
New Revision: 61103

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/gui_core/prompt.py
Log:
wxGUI/prompt: fix browsing command history on Windows (merge from trunk, r61102)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/prompt.py	2014-07-01 15:08:05 UTC (rev 61102)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/prompt.py	2014-07-01 15:10:03 UTC (rev 61103)
@@ -416,7 +416,8 @@
                 self.cmdindex = len(self.cmdbuffer) - 1
 
             try:
-                txt = self.cmdbuffer[self.cmdindex]
+                # without strip causes problem on windows
+                txt = self.cmdbuffer[self.cmdindex].strip()
             except KeyError:
                 txt = ''
 



More information about the grass-commit mailing list