Merge pull request #403 from Lucas-C/master

Using uppercase C to 'clear' display mode, because lowercase 'c' is used for css
This commit is contained in:
Maximilian Hils 2014-11-10 17:32:06 +01:00
commit 807a8eb759

View File

@ -637,11 +637,10 @@ class FlowView(common.WWrap):
return self._view_nextprev_flow("prev", flow) return self._view_nextprev_flow("prev", flow)
def change_this_display_mode(self, t): def change_this_display_mode(self, t):
self.state.add_flow_setting( key = (self.state.view_flow_mode, "prettyview")
self.flow, value = contentview.get_by_shortcut(t)
(self.state.view_flow_mode, "prettyview"), if value:
contentview.get_by_shortcut(t) self.state.add_flow_setting(self.flow, key, value)
)
self.master.refresh_flow(self.flow) self.master.refresh_flow(self.flow)
def delete_body(self, t): def delete_body(self, t):
@ -749,7 +748,7 @@ class FlowView(common.WWrap):
self.master.statusbar.message("") self.master.statusbar.message("")
elif key == "m": elif key == "m":
p = list(contentview.view_prompts) p = list(contentview.view_prompts)
p.insert(0, ("clear", "c")) p.insert(0, ("Clear", "C"))
self.master.prompt_onekey( self.master.prompt_onekey(
"Display mode", "Display mode",
p, p,