summaryrefslogtreecommitdiffstats
path: root/surf.c
diff options
context:
space:
mode:
authorGravatar Quentin Rameau 2017-05-18 16:42:59 +0200
committerGravatar Quentin Rameau 2017-05-22 12:38:49 +0200
commita1328457cff30dc678a1b8e80dc44ddb73ce293c (patch)
tree434f6d2585d5fa2df6eadef512b208548486f116 /surf.c
parentAdd config option for cross requests from file URLs (diff)
Unset previous user styles before applying another one
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/surf.c b/surf.c
index 694eff8..51c1813 100644
--- a/surf.c
+++ b/surf.c
@@ -782,11 +782,10 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
WEBKIT_TLS_ERRORS_POLICY_IGNORE);
break;
case Style:
+ webkit_user_content_manager_remove_all_style_sheets(
+ webkit_web_view_get_user_content_manager(c->view));
if (a->b)
setstyle(c, getstyle(geturi(c)));
- else
- webkit_user_content_manager_remove_all_style_sheets(
- webkit_web_view_get_user_content_manager(c->view));
refresh = 0;
break;
case ZoomLevel:
936c79214e20bf89197325487966d0&follow=1'>added coloring to help commandGravatar BanceDev 1-2/+2 2024-09-09add aliasing to init.luaGravatar BanceDev 9-14/+258 2024-09-09bugfix to inline backspace and delete on multiline bufferGravatar BanceDev 1-7/+23 2024-09-09fixed line wrapping when deleting inlineGravatar BanceDev 1-0/+8 2024-09-09updated gitignoreGravatar BanceDev 2-1/+2 2024-09-09fixed wrapping bug due to not using updated prompt_lengthGravatar BanceDev 1-3/+6 2024-09-09added stripping of escape sequences from prompt size to allow for coloringGravatar BanceDev 1-5/+26 2024-09-09added support for init.lua for configuring shellGravatar BanceDev 8-38/+180 2024-09-09docs: update pathGravatar Christopher Lane 1-1/+1 Updated the path to the example script and fixed a typo in the readme 2024-09-08added getenv and putenv to Lua APIGravatar BanceDev 2-5/+33 fixed bug where terminal closed upon encountering Lua error 2024-09-08added lua api functions for indexing historyGravatar BanceDev 2-0/+35 2024-09-08added support for cli args for lua scriptsGravatar BanceDev 4-3/+28 2024-09-07added --version flagGravatar BanceDev 1-1/+9 2024-09-07fixed error in install.sh instructionsGravatar BanceDev 1-1/+1 2024-09-07fixed bug with cursor alignment when adding text within the bufferGravatar BanceDev 1-1/+11 2024-09-06added API guide to readmeGravatar BanceDev 1-1/+5 2024-09-06Update README.mdGravatar Lance Borden 1-1/+1 2024-09-06better readmeGravatar BanceDev 2-2/+14