diff options
author | Nick Schermer <nick@xfce.org> | 2009-12-04 18:13:05 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2009-12-04 18:13:05 +0100 |
commit | 9b3925ccb00387da75d38836842b3d2923681285 (patch) | |
tree | f2259b9446dec2ac8435f6699af106edf54e5ef7 /plugins/thunar-sbr | |
parent | 7464a0df215269a9b5ffea423e75454f0559c333 (diff) | |
download | thunar-9b3925ccb00387da75d38836842b3d2923681285.tar.gz |
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.
Diffstat (limited to 'plugins/thunar-sbr')
-rw-r--r-- | 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 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 */ |