summaryrefslogtreecommitdiffstats
path: root/examples/prompts/custom-vi-operator-and-text-object.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xexamples/prompts/custom-vi-operator-and-text-object.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/custom-vi-operator-and-text-object.py b/examples/prompts/custom-vi-operator-and-text-object.py
index 7478afc..74bac23 100755
--- a/examples/prompts/custom-vi-operator-and-text-object.py
+++ b/examples/prompts/custom-vi-operator-and-text-object.py
@@ -3,6 +3,7 @@
Example of adding a custom Vi operator and text object.
(Note that this API is not guaranteed to remain stable.)
"""
+
from prompt_toolkit import prompt
from prompt_toolkit.enums import EditingMode
from prompt_toolkit.key_binding import KeyBindings
@@ -63,7 +64,7 @@ def main():
text = prompt(
"> ", default="hello world", key_bindings=bindings, editing_mode=EditingMode.VI
)
- print("You said: %s" % text)
+ print(f"You said: {text}")
if __name__ == "__main__":