Changeset

5849:8f451d370dd4

util.filters: Fix inserting items so that higher priority filters run first
author Kim Alvefur <zash@zash.se>
date Mon, 30 Sep 2013 21:51:42 +0200
parents 5826:9fc1088b3b68
children 5850:e8c743f4213f 5853:3ee3d79db18c
files util/filters.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/filters.lua	Mon Sep 09 11:32:03 2013 +0100
+++ b/util/filters.lua	Mon Sep 30 21:51:42 2013 +0200
@@ -52,7 +52,7 @@
 	local i = 0;
 	repeat
 		i = i + 1;
-	until not filter_list[i] or filter_list[filter_list[i]] >= priority;
+	until not filter_list[i] or filter_list[filter_list[i]] < priority;
 	
 	t_insert(filter_list, i, callback);
 	filter_list[callback] = priority;