If the setting trim_trailing_white_space_on_save is set to true, the redo-history won’t be available after save.
To see the bug in action, paste the following in a file:
sdfjkhsdkjh
sdfsdf
asd
On line 2 there are two whitespaces. Now add some characters on the last line, undo this by hitting ctrl/cmd+z and save the file. The whitepace characters will be removed, which is expected behaviour. However, if you want to redo the last modification, it won’t be possible.