mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge pull request #2946 from fenilgandhi/master
Fix for wrapping up extra-long urls in flowdetailview
This commit is contained in:
commit
618d52a65e
@ -30,12 +30,14 @@ class FlowViewHeader(urwid.WidgetWrap):
|
|||||||
self.focus_changed()
|
self.focus_changed()
|
||||||
|
|
||||||
def focus_changed(self):
|
def focus_changed(self):
|
||||||
|
cols, _ = self.master.ui.get_cols_rows()
|
||||||
if self.master.view.focus.flow:
|
if self.master.view.focus.flow:
|
||||||
self._w = common.format_flow(
|
self._w = common.format_flow(
|
||||||
self.master.view.focus.flow,
|
self.master.view.focus.flow,
|
||||||
False,
|
False,
|
||||||
extended=True,
|
extended=True,
|
||||||
hostheader=self.master.options.showhost
|
hostheader=self.master.options.showhost,
|
||||||
|
max_url_len=cols,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self._w = urwid.Pile([])
|
self._w = urwid.Pile([])
|
||||||
|
Loading…
Reference in New Issue
Block a user