Merge pull request #2946 from fenilgandhi/master

Fix for wrapping up extra-long urls in flowdetailview
This commit is contained in:
Maximilian Hils 2018-03-04 19:46:43 +01:00 committed by GitHub
commit 618d52a65e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,12 +30,14 @@ class FlowViewHeader(urwid.WidgetWrap):
self.focus_changed()
def focus_changed(self):
cols, _ = self.master.ui.get_cols_rows()
if self.master.view.focus.flow:
self._w = common.format_flow(
self.master.view.focus.flow,
False,
extended=True,
hostheader=self.master.options.showhost
hostheader=self.master.options.showhost,
max_url_len=cols,
)
else:
self._w = urwid.Pile([])