diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-14 14:20:13 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-14 14:24:00 +0200 |
commit | f81dcd10b9c09524a00b3b819679eca1d7ad6bf5 (patch) | |
tree | c315f7dd51908a9564e0081528d67cf11cb8a799 /src/app.c | |
parent | b18205c60ee2c4549cf521e02f0223aec46e90b5 (diff) |
SidebarWidget: Handling feed entry URLs with spaces
The sidebar failed to realize that an entry was the current one and/or already read, because URL encoding is not consistently applied.
This needs addressing soon — internally, all URLs should have a consistent format (fully encoded or decoded, NFC normalized).
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1317,7 +1317,7 @@ iBool handleCommand_App(const char *cmd) { | |||
1317 | iDocumentWidget *doc = document_Command(cmd); | 1317 | iDocumentWidget *doc = document_Command(cmd); |
1318 | const int newTab = argLabel_Command(cmd, "newtab"); | 1318 | const int newTab = argLabel_Command(cmd, "newtab"); |
1319 | if (newTab) { | 1319 | if (newTab) { |
1320 | doc = newTab_App(NULL, (newTab & 1) != 0); /* "newtab:2" to open in background */ | 1320 | doc = newTab_App(NULL, (newTab & 1) != 0); /* `newtab:2` to open in background */ |
1321 | } | 1321 | } |
1322 | iHistory *history = history_DocumentWidget(doc); | 1322 | iHistory *history = history_DocumentWidget(doc); |
1323 | const iBool isHistory = argLabel_Command(cmd, "history") != 0; | 1323 | const iBool isHistory = argLabel_Command(cmd, "history") != 0; |