Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Nov 28, 2014
1 parent 3887e7e commit 56f1278
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libmproxy/console/grideditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def set_current_value(self, val, unescaped):
except ValueError:
self.editor.master.statusbar.message("Invalid Python-style string encoding.", 1000)
return

errors = self.lst[self.focus][1]
emsg = self.editor.is_error(self.focus_col, val)
if emsg:
Expand Down Expand Up @@ -322,9 +321,11 @@ def keypress(self, size, key):
elif key == "d":
self.walker.delete_focus()
elif key == "r":
self.master.path_prompt("Read file: ", "", self.read_file)
if self.walker.get_current_value() is not None:
self.master.path_prompt("Read file: ", "", self.read_file)
elif key == "R":
self.master.path_prompt("Read unescaped file: ", "", self.read_file, True)
if self.walker.get_current_value() is not None:
self.master.path_prompt("Read unescaped file: ", "", self.read_file, True)
elif key == "e":
o = self.walker.get_current_value()
if o is not None:
Expand Down

0 comments on commit 56f1278

Please sign in to comment.