From 9b3925ccb00387da75d38836842b3d2923681285 Mon Sep 17 00:00:00 2001 From: Nick Schermer Date: Fri, 4 Dec 2009 18:13:05 +0100 Subject: Allow removing characters from the right. There is a small thinko in the remove renamer that does not allow setting an end position of 0 (right) and thus making it impossible to remove characters from the right end of the string. --- plugins/thunar-sbr/thunar-sbr-remove-renamer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/thunar-sbr') diff --git a/plugins/thunar-sbr/thunar-sbr-remove-renamer.c b/plugins/thunar-sbr/thunar-sbr-remove-renamer.c index 42261a58..0761814c 100644 --- a/plugins/thunar-sbr/thunar-sbr-remove-renamer.c +++ b/plugins/thunar-sbr/thunar-sbr-remove-renamer.c @@ -349,7 +349,7 @@ thunar_sbr_remove_renamer_process (ThunarxRenamer *renamer, ? remove_renamer->start_offset : (text_length - remove_renamer->start_offset); /* check if anything should be removed */ - if (G_UNLIKELY (start_offset >= end_offset || end_offset >= text_length)) + if (G_UNLIKELY (start_offset >= end_offset || end_offset > text_length)) return g_strdup (text); /* determine start and end pointers */ -- cgit v1.2.1