diff options
author | Dequis <dx@dxzone.com.ar> | 2009-06-20 01:17:43 -0300 |
---|---|---|
committer | Dequis <dx@dxzone.com.ar> | 2009-06-20 01:17:43 -0300 |
commit | f70e2d36a664c9571eeb520341d18246fb4170cb (patch) | |
tree | 50dc7ea9b7be1752bf71cf392441f9f65812521f /uzbl.c | |
parent | fedfe2c06b3e01d5dede2cbab395a0ab48bb94e9 (diff) | |
parent | 8f7064b6a91d3b253e62f303a3793613a55d3631 (diff) |
Merge commit 'dieterbe/experimental' into experimental
Conflicts solved:
uzbl.c
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -988,10 +988,13 @@ keycmd_nl (WebKitWebView *page, GArray *argv, GString *result) { static void keycmd_bs (WebKitWebView *page, GArray *argv, GString *result) { + gchar *prev; (void)page; (void)argv; (void)result; - g_string_truncate(uzbl.state.keycmd, uzbl.state.keycmd->len - 1); + prev = g_utf8_find_prev_char(uzbl.state.keycmd->str, uzbl.state.keycmd->str + uzbl.state.keycmd->len); + if (prev) + g_string_truncate(uzbl.state.keycmd, prev - uzbl.state.keycmd->str); update_title(); } @@ -1764,9 +1767,9 @@ parse_cmd_line(const char *ctl_line, GString *result) { static gchar* build_stream_name(int type, const gchar* dir) { - char *xwin_str; + char *xwin_str = NULL; State *s = &uzbl.state; - gchar *str; + gchar *str = NULL; xwin_str = itos((int)uzbl.xwin); if (type == FIFO) { |