Text box now react to CTRl+BACKSPACE like Word (delete last word) - thx Ivandrofly :)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2192 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2013-11-16 08:18:55 +00:00
parent 4ea6e460f9
commit 6536492c10

View File

@ -47,7 +47,7 @@ namespace Nikse.SubtitleEdit.Controls
}
if (deleteFrom == index - 1)
{
while (deleteFrom > 0 && (breakChars.Replace(" ", string.Empty)).Contains(s.Substring(deleteFrom, 1)))
while (deleteFrom > 0 && (breakChars.Replace(" ", string.Empty)).Contains(s.Substring(deleteFrom - 1, 1)))
{
deleteFrom--;
}