mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-10-23 12:52:39 +00:00
Browser: fix for manual URL getting truncated by 1 char when | not in URL
This commit is contained in:
1 parent
7de0fa9a8f
commit
fa205354bc
1 file changed
+1
-1
@@ -1121,7 +1121,7 @@ class Browser:
|
||||
entered_url = e_url.get_edit_text().strip()
|
||||
if not "`" in entered_url and ":" in entered_url:
|
||||
pos = entered_url.find("|")
|
||||
if pos: entered_url = entered_url[:pos]+"`"+entered_url[pos+1:]
|
||||
if pos > 0: entered_url = entered_url[:pos]+"`"+entered_url[pos+1:]
|
||||
self.retrieve_url(entered_url)
|
||||
except Exception as e:
|
||||
self.browser_footer = urwid.Text("Could not open link: "+str(e))
|
||||
|
||||
Reference in new issue
Block a user