Commit 9b3925cc authored by Nick Schermer's avatar Nick Schermer

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.
parent 7464a0df
......@@ -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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment