Disallowed non-ASCII characters and double-quite in usvn commit messages

git-svn-id: svn://ultimatepp.org/upp/trunk@342 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2008-08-16 13:58:32 +00:00
parent f1c9e4d210
commit 6652cfaa6d
2 changed files with 7 additions and 2 deletions

View file

@ -1 +1 @@
#define IDE_VERSION "808.r133"
#define IDE_VERSION "808.r134"

View file

@ -21,6 +21,11 @@ void SvnSync::Setup()
SyncList();
}
int CharFilterSvnMsg(int c)
{
return c >= 32 && c < 128 && c != '\"' ? c : 0;
}
void SvnSync::SyncList()
{
list.Clear();
@ -77,7 +82,7 @@ void SvnSync::SyncList()
if(actions) {
list.Add(MESSAGE, Null, AttrText("Commit message:").SetFont(StdFont().Bold()));
list.SetLineCy(list.GetCount() - 1, EditField::GetStdHeight() + 4);
list.SetCtrl(list.GetCount() - 1, 1, message.Add());
list.SetCtrl(list.GetCount() - 1, 1, message.Add().SetFilter(CharFilterSvnMsg));
}
else
list.Add(-1, Null, "", AttrText("Nothing to do").SetFont(StdFont().Italic()));