aboutsummaryrefslogtreecommitdiff
path: root/routes/repo/setting.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-06-11 21:06:24 +0800
committerUnknwon <u@gogs.io>2018-06-11 21:06:24 +0800
commitdfd494c113cfa2a25ee0c2f5a12c6403f24742a4 (patch)
treea1b7e8c997bf77790fd8402e19cc642530f360bf /routes/repo/setting.go
parent57897cc8c2c90ab1566a65bcd1eabfd41a906070 (diff)
repo: minor improve for PR #5219 and support UTF-8 byte count
Diffstat (limited to 'routes/repo/setting.go')
-rw-r--r--routes/repo/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/repo/setting.go b/routes/repo/setting.go
index edf6216d..0b0f294d 100644
--- a/routes/repo/setting.go
+++ b/routes/repo/setting.go
@@ -34,7 +34,7 @@ const (
func Settings(c *context.Context) {
c.Title("repo.settings")
c.PageIs("SettingsOptions")
- c.Data["RequireAutosize"] = true
+ c.RequireAutosize()
c.Success(SETTINGS_OPTIONS)
}