summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-12-04 00:36:16 +0100
committerhut <hut@lepus.uberspace.de>2014-12-04 00:36:16 +0100
commit987d618504ead0a099160c14855d8181500f3463 (patch)
tree53a9f91b530e42882f035933d03607c58fe29199 /ranger
parent8c987ebc72928fef34ca14e16b7d1d538610fbd4 (diff)
downloadranger-987d618504ead0a099160c14855d8181500f3463.tar.gz
config/commands.py: in :paper, properly fill in the console lines
Diffstat (limited to 'ranger')
-rw-r--r--ranger/config/commands.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 1685898b..8145aadd 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1308,7 +1308,12 @@ class paper(Command):
             self._paper_fill_console(key)
 
     def _paper_fill_console(self, key):
-        text = "paper_%s %s" % (key, "foo")
+        paperinfo = self.fm.papermanager.get_paper_info(self.fm.thisfile.path)
+        if key in paperinfo and paperinfo[key]:
+            existing_value = paperinfo[key]
+        else:
+            existing_value = ""
+        text = "paper_%s %s" % (key, existing_value)
         self.fm.open_console(text, position=len(text))