Age | Commit message (Collapse) | Author |
|
While we do want to have special handling of punctuation to help wrap
pathologically-long-hyphenated-words-that-go-on-for-kilometers, we don't
want to wrap emoticons, so let's adjust the logic to account for this.
While we're at it, clean up and add a comment explaining the logic for
the benefit of future readers.
Fixes rendering of a recent post on CAPCOM at certain window sizes
=> gemini://rosenzweig.io/lagrange/Before.png Before the change
=> gemini://rosenzweig.io/lagrange/After.png After the change
Notice the wrapping of the ":D" in the second paragraph.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
|
|
|
|
IssueID #23
|
|
|
|
|
|
In some cases an empty <META> in the server response would cause GmResponse to treat the entire header as invalid.
Also, TlsRequest was not handling closing of the TLS/SSL connection if the socket still remained open. This caused GmRequest to wait until the timeout before it realized the full response had been received.
IssueID #22
|
|
Must clear all previous references to GmRuns when the document is updated.
|
|
|
|
Some default key shortcuts use Option on macOS, so avoid those for keyboard navigation.
|
|
There's a lot of stuff in documentwidget.c. First, moving away the smaller helper code.
|
|
DocumentWidget: Adapt new tab behaviour to keyboard browsing
|
|
|
|
IssueID #20
|
|
|
|
Delete garbage collected widgets in Window deinitialization.
Widgets should not continue to exist if there is no Window.
|
|
TlsRequest: LibreSSL compatibility.
|
|
|
|
As part of the CMake configuration, build bincat (23 lines of C) to concatenate resource files together. This is much faster because CMake doesn't have to get involved in the contents of the binary files.
|
|
This code path is used for opening both http/s and mailto links. On
macOS, open is used generically handling both nicely. On Linux,
x-www-browser was used for both, meaning it would attempt to open mailto
links with the browser. This -does- work but is clunky. On my system, my
defaults are Firefox for web and mutt for email, so if I clicked a
mailto, Firefox would open (slow!) just to go out of focus as it opens
mutt.
Let's just mirror the macOS behaviour and use xdg-open for both kinds of
links. Then the browser will be used for http/s and the mail client for
mailto and everyone's happy.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
|
|
|
|
|
|
Testing on OpenBSD.
|
|
Should clear the garbage before quitting SDL because widgets may be
in the garbage and have SDL resources to release.
|
|
|
|
|
|
|
|
|
|
|
|
One can now bind keys in Preferences. The configured keys aren't yet saved, though.
|
|
|
|
|
|
If the key bindings have a key for a command, LabelWidget will use it.
|
|
|
|
The document scrolling keys are now handled via bindings.
|
|
|
|
|
|
|
|
|
|
If there are no identities, the Identities tab now shows a button for creating one, and a link to the Help documentation.
|
|
|
|
Widgets now have an optional virtual method that gets called when the size of the widget changes during arranging. Wrapped text in LabelWidget uses this to update its height.
|
|
|
|
|
|
|
|
|
|
Redraw the side icon and heading when the current top heading changes.
|
|
|
|
No need to redraw the text string on every frame.
|
|
|
|
A proper error page is now shown if there is an error during the TLS request.
|