Trim trailing whitespaces in every selection case
Trailing whitespaces are trimmed when copying from normal selection and rectangular selection on lines that have their last character included or on the left of the selection. It leads to inconsistent behaviors when copying the exact same text from the left and right window in applications with vertical splits. This patch solves this issue by always trimming the selection.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-505-g31b4d79a84