Просмотр исходного кода

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 лет назад
Родитель
Сommit
5708cfcb8e
1 измененных файлов с 2 добавлено и 1 удалено
  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 = ''