[Xfce4-commits] <thunar:master> Allow removing characters from the right.
Nick Schermer
noreply at xfce.org
Fri Dec 4 18:16:01 CET 2009
Updating branch refs/heads/master
to 9b3925ccb00387da75d38836842b3d2923681285 (commit)
from 7464a0df215269a9b5ffea423e75454f0559c333 (commit)
commit 9b3925ccb00387da75d38836842b3d2923681285
Author: Nick Schermer <nick at xfce.org>
Date: Fri Dec 4 18:13:05 2009 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/thunar-sbr/thunar-sbr-remove-renamer.c b/plugins/thunar-sbr/thunar-sbr-remove-renamer.c
index 42261a5..0761814 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 */
More information about the Xfce4-commits
mailing list