Browse Source

wxGUI/prompt: fix browsing command history on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61102 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 years ago
parent
commit
5708cfcb8e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_core/prompt.py

+ 2 - 1
gui/wxpython/gui_core/prompt.py

@@ -416,7 +416,8 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
                 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 = ''