Iñigo Serna avatar Iñigo Serna committed e97cc93

Fixed bug: pyview show help: encode help title. Reported by E. R. Uber

* lfm/pyview.py (FileView.show_help): fixed a bug: encode help title.
Catched by E.R. Uber

Comments (0)

Files changed (3)

+Thu Sep 22 23:36:23 2011  Iñigo Serna  <inigoserna@gmail.com>
+
+	* lfm/pyview.py (FileView.show_help): fixed a bug: encode help title.
+	Catched by E.R. Uber
+
 Thu Sep 22 16:51:23 2011  Iñigo Serna  <inigoserna@gmail.com>
 
 	* lfm/pyview.py (FileView.goto_bookmark): fixed a bug. Catched by E.R. Uber
 ============================================================================
-Last update:	Time-stamp: <2011-09-22 17:14:52 inigo>
+Last update:	Time-stamp: <2011-09-22 23:40:43 inigo>
 ============================================================================
 
 
 
 BUGS FIXED:
 - make tree view fullscreen in PANE_MODE_FULL
-- pyview: goto bookmark, reported by E.R. Uber
+- pyview:
+  . goto bookmark. Reported by E.R. Uber
+  . show help: encode title. Reported by E.R. Uber
 
 
 Laurent Humblet: asked how to change a shortcut
 Maximilian Dietrich: open a media file
 Maurício: some questions
-E.R. Uber: catched a bug in pyview.py
+E.R. Uber: catched a couple of bugs in pyview.py
 
     def show_help(self):
         buf = [('', 2)]
-        buf.append(('%s v%s (C) %s, by %s' % \
-                    (PYVIEW_NAME, VERSION, DATE, AUTHOR), 5))
+        buf.append((encode(u'%s v%s (C) %s, by %s' % \
+                           (PYVIEW_NAME, VERSION, DATE, AUTHOR)), 5))
         text = PYVIEW_README.split('\n')
         for l in text:
             buf.append((l, 6))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.