summaryrefslogtreecommitdiffstats
path: root/examples/full-screen/pager.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 04:45:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 04:45:14 +0000
commit437643bd908d99924e3003db4d9d3718d9df5813 (patch)
tree9752c4e8ebd3ae23f7a586066a874bd4418feeaa /examples/full-screen/pager.py
parentAdding debian version 3.0.43-2. (diff)
downloadprompt-toolkit-437643bd908d99924e3003db4d9d3718d9df5813.tar.xz
prompt-toolkit-437643bd908d99924e3003db4d9d3718d9df5813.zip
Merging upstream version 3.0.46.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/full-screen/pager.py')
-rwxr-xr-xexamples/full-screen/pager.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/full-screen/pager.py b/examples/full-screen/pager.py
index 799c834..61336a5 100755
--- a/examples/full-screen/pager.py
+++ b/examples/full-screen/pager.py
@@ -2,6 +2,7 @@
"""
A simple application that shows a Pager application.
"""
+
from pygments.lexers.python import PythonLexer
from prompt_toolkit.application import Application
@@ -28,10 +29,7 @@ def get_statusbar_text():
("class:status", _pager_py_path + " - "),
(
"class:status.position",
- "{}:{}".format(
- text_area.document.cursor_position_row + 1,
- text_area.document.cursor_position_col + 1,
- ),
+ f"{text_area.document.cursor_position_row + 1}:{text_area.document.cursor_position_col + 1}",
),
("class:status", " - Press "),
("class:status.key", "Ctrl-C"),