This key binding does "Delete from cursor to previous space".
When the text before the cursor was `some example`,
it would find the space after "some" and delete "example".
When hitting Ctrl+W *again*, it would find the same space again…
and delete nothing.
This changes the code to ignore trailing spaces before the cursor
for the purspose of finding the previous space,
so that something (if at all possible) is always deleted.
Some gifv links on imgur.com do not have an associated webm video
and only provide an mp4 video. Add two source elements with proper
mimetypes for both types of video. The video player will fall back
to the secondary source if the first cannot be loaded (due to 404)
Example: Trying to load the webm version of this video
http://i.imgur.com/i7D4GRb.webm
will result in a 302 redirect to the gifv url, which tries to load
an HTML document. This will cause our video player to reject the
document as an invalid video format (text/html); on some videos it
will simply 404. The mp4 version is available and our player will
fall back to that.
The settings module sees that we're reading a number, so it converts
the value to a number. Unit detection needs a string, though, so
convert it back into one in that case.
This is to improve performance when switching to a buffer with a large
number of unread lines.
Fixes#859
Thanks to @lorenzhs for the comments on PR #862.
This introduces ability to pin buffers using localvar storage in
WeeChat. At a later stage some UI should be introduced for this, like
discussed in #604 .