We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 118aa7f commit 5d68fb7Copy full SHA for 5d68fb7
examples/full-screen/pager.py
@@ -16,13 +16,16 @@
16
17
# Create one text buffer for the main content.
18
19
-with open('./pager.py', 'rb') as f:
+_pager_py_path = __file__
20
+
21
22
+with open(_pager_py_path, 'rb') as f:
23
text = f.read().decode('utf-8')
24
25
26
def get_statusbar_text():
27
return [
- ('class:status', './pager.py - '),
28
+ ('class:status', _pager_py_path + ' - '),
29
('class:status.position', '{}:{}'.format(
30
text_area.document.cursor_position_row + 1,
31
text_area.document.cursor_position_col + 1)),
0 commit comments