git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61102 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -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 = ''