mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
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:
parent
f1c9e4d210
commit
6652cfaa6d
2 changed files with 7 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
#define IDE_VERSION "808.r133"
|
||||
#define IDE_VERSION "808.r134"
|
||||
|
|
|
|||
|
|
@ -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()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue