Commit Graph

390 Commits

Author SHA1 Message Date
Hannes Schueller 1dacd5168b version 0.9.8.0 2011-02-27 21:09:10 +01:00
Hannes Schueller 25aff6b492 adding C-[ as escape sequence 2011-02-27 21:03:34 +01:00
Hannes Schueller 50b372843f Patch by alkim1234@gmail.com:
This is a small patch provides the macro IS_ESCAPE to check whether a
GdkEventKey should be considered as an escape event. This patch also adds <C-[>
as an escape event.
2011-02-27 21:02:10 +01:00
Hannes Schueller 6cf526177b whitespace fixes 2011-02-27 20:56:40 +01:00
Thomas Adam 3950662e2d Don't segfault overflowing MAX_LIST_SIZE in complete()
When completing the command list, at the command prompt, ensure we malloc
and then realloc by not assuming this list is initially the length of
MAX_LIST_SIZE.

Instead, calculate the size of the command list at runtime, and use that
value to malloc correctly.   This doesn't then attempt to overwrite any
memory when realloc()ing.

In complete() when trying to realloc() the code path means that we might
reach that point before having had that memory used -- so only print the
warning realloc() failed if both the original pointer and the new one are
both NULL.

But we explicitly assign the newly realloc()d pointer to temporary pointers
so that we don't clobber the original pointer.  In the case originally of
overflowing MAX_LIST_SIZE, trying to realloc() beyond that, still using the
original pointer, meant that we lost all of the data.  That's bad.

This does need a bit of a rethink in the future to get rid of the static
state of some of the function variables, but this patch doesn't need to
address that.
2011-02-27 20:49:34 +01:00
Thomas Adam 0c40d0772b Fix DSO linker (ld) changes with -lX11 -lXent
In recent versions of ld which now requires strict dynamic linker object
rules, we must tell the linker which libraries to explicitly link against.

This affects our use of X11, so link against that.
2011-02-27 20:46:02 +01:00
Thomas Adam dd724ac913 Update PATCHES to reflect V_DEBUG make target.
Mention how V_DEBUG is meant to help with debug builds/sending patches.
2011-02-27 20:16:12 +01:00
Thomas Adam 5466bef07b Add V_DEBUG target.
Useful for debugging and submitting patches.
2011-02-27 20:16:12 +01:00
Hannes Schueller 46be442d21 allowing longer URLs to be opened in a new window 2011-02-13 12:39:59 +01:00
Hannes Schueller 70d201fca0 Strip leading and trailing whitespace from open_arg() argument.
This fixes the issue of URLs being interpreted as search terms if
entered with additional whitespace.
2011-02-07 20:08:56 +01:00
Hannes Schueller 293fd102bf allowing Mod1 - Mod5 in keybindings defined through :map command 2011-02-07 19:44:01 +01:00
Hannes Schueller 279757557a adding keypad slash, plus and minus to default keybindings 2011-02-02 19:12:40 +01:00
Thomas Adam 9c2c14b5d3 Cast other misc GtkFoo* pointers to macros
In the interests of type-safety, convert other stray GtkFoo* pointers to
their macro equivalents.
2011-01-15 16:31:57 +01:00
Thomas Adam e7897eddb6 Avoid GCallback* casts and use G_CALLBACK macro
Don't explicitly case pointers to GCallback*, instead use G_CALLBACK macro
to help with type-safety.
2011-01-15 16:31:57 +01:00
Thomas Adam 28d83501d9 Change all GObject cats to G_OBJECT
Don't explicitly cast a pointer to GObject* explicitly, instead use the
G_OBJECT macro to help type-safety.
2011-01-15 16:28:55 +01:00
Hannes Schueller 5e185532a0 Add field for customising HTTP Accept-Language header
Patch by Stephen Morgan <morgan.stephen99@gmail.com>
2011-01-15 16:18:18 +01:00
Thomas Adam b20c49b83d Support Webkit's enable-page-cache setting
See:  http://webkit.org/blog/427/webkit-page-cache-i-the-basics/

Off by default, as this was always the case with Vimprobable.  When turned
on, seems to improve my own browsing experience a little.  I am sure it's
more than just a placebo.  :)
2011-01-15 16:06:54 +01:00
Hannes Schueller 24306a57ee version 0.9.7.1 2010-12-11 19:54:52 +01:00
Hannes Schueller 19321992f2 Vimprobable2 should always identify as Vimprobable2 internally 2010-12-11 19:53:31 +01:00
Thomas Adam 0c5cf257ab Use INTERNAL_VERSION to describe Vimprobable
When printing out Vimprobable's version via "-v" on the command-line, don't
assume that the useragent value will be the default.  Instead, always use
INTERNAL_VERSION which is:  "Vimprobable/VERSION".
2010-12-11 19:48:12 +01:00
Thomas Adam 2a570a0022 Put VERSION in its own define.
Don't hard code the version of Vimprobable as part of the default useragent
string.
2010-12-11 19:48:12 +01:00
Thomas Adam b08ba6e019 Increase length of static strings (useragent/homepage)
Since these can be set in a config, give them a fairly long length.
2010-12-11 19:48:12 +01:00
Thomas Adam e30a6dd32d Use "changed" signal to update cookie jars.
Go back to using libsoup's "changed" signal handling on the file-store for
the on disk cookie-jar, and update our session-store as it's updated.

Request headers from URLs which contain cookies go straight into the file
cookie jar on disk.

This should help reduce the overhead of needing to read/write to the entire
file cookie store on disk each time.
2010-12-11 19:42:17 +01:00
Thomas Adam 526d9ff9d6 Fixup function declarations.
Fix sloppy function declarations by declaring (void) where applicable.
2010-12-11 19:33:55 +01:00
Robin Kreis 60dc9af864 Ignore event->state bits not set in GdkEventMask
Under unknown circumstances (like some computers running ibus),
event->state is 1<<25 (an unused bit) instead of 0.  This patch modifies
the CLEAN macro to strip those unused bits, making vimprobable ignore
them.

This fixes a bug where, on those machines, vimprobable wouldn't accept
any keys.
2010-12-11 19:31:05 +01:00
Hannes Schueller ea6dee60d8 version 0.9.7.0 2010-11-28 16:00:23 +01:00
Hannes Schueller be68757b29 man page update to reflect mapping of colon commands 2010-11-28 15:59:51 +01:00
Hannes Schueller 1d511c000d allowing keys to be mapped to colon commands 2010-11-28 15:48:03 +01:00
Hannes Schueller 5063b0108c strip newline character from completion URLs 2010-11-23 15:51:28 +01:00
Thomas Adam 304ff1796b Fix "map" processing in config files.
Trying to calculate the size of an extern array at runtime is fatal -- it's
also going to either evaluate to zero (if passed by pointer) or fail at
compilation, because sizeof is compile-time only.

Therefore, give the commands[] array a pre-calculated size -- which can
then be used properly when trying to set any "map" lines encountered in
Vimprobable's config file.
2010-11-20 09:42:25 +01:00
Hannes Schueller da5394a5c4 Merge branch 'vimprobable2' of ssh://vimprobable.org/home/vimprobable.org/web/public/vimprobable into vimprobable2 2010-11-20 09:39:10 +01:00
Hannes Schueller d59f9d6a09 removing double function definition 2010-11-20 09:28:57 +01:00
Hannes Schueller 5c2829c7a3 version 0.9.6.3 2010-11-13 11:41:19 +01:00
Hans-Peter Deifel 6c22a939f3 Don't concatenate the last two bookmark tags 2010-11-13 11:40:34 +01:00
Hannes Schueller 91b4082eb0 bugfix: no tab completion results if history file missing 2010-11-11 19:03:28 +01:00
Hannes Schueller 848a6a89c9 version 0.9.6.1 2010-11-08 21:58:07 +01:00
Hannes Schueller 3a23feeb2c allow KP_Enter to fire hints 2010-11-08 21:56:41 +01:00
Hannes Schueller f7f606f4be bugfix: correct handling of KP_0 in hint mode 2010-11-08 21:51:56 +01:00
Hannes Schueller 8d098d0a6b fixing URL of Vimprobable website/repository 2010-11-08 21:47:55 +01:00
Hannes Schueller 07086bddcd renaming file to PATCHES 2010-11-08 21:45:58 +01:00
Thomas Adam 71937beb79 Introduce the SubmittingPatches document
First draft of how to submit patches to Vimprobable.
2010-11-08 21:45:00 +01:00
Thomas Adam f399beda71 Saner config file checking.
Don't moan if RCFILE cannot be opened -- instead, use give_feedback() if an
explicit config file was passed on the command-line, but couldn't be opened.
For everything else, use an explicit error, because we assume the file
could be opened, but not parsed for some reason.
2010-11-08 21:43:23 +01:00
Hannes Schueller 1b6c1d7deb fixing the spelling of Thomas Adam's name 2010-11-07 20:30:36 +01:00
Hannes Schueller 54d85dd8b2 man page update (case sensitivity of tab completion) 2010-11-07 09:15:25 +01:00
Hannes Schueller c71676c4e0 Merge branch 'vimprobable2' of ssh://vimprobable.org/home/vimprobable.org/web/public/vimprobable into vimprobable2 2010-11-07 09:07:43 +01:00
Hannes Schueller 5b0415d147 version 0.9.6.0 2010-11-07 09:00:54 +01:00
Hannes Schueller 0df274884f fixing tabbing through completion suggestions 2010-11-05 21:39:42 +01:00
Hannes Schueller 98d16a4692 going through the whole command set for completion matches 2010-11-05 21:24:35 +01:00
Hannes Schueller d6f560c5c0 fixing memory leak caused by suggurls 2010-11-05 21:01:27 +01:00
Hannes Schueller 642c48b271 always applying the correct maximum list size in complete() 2010-11-05 20:59:44 +01:00