From 6e1b800f920241a874897d60985c2b51bc782bff Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 22 Sep 2014 17:56:38 +0800 Subject: [PATCH] . --- data/user_workspaces/admin/src/mytest/1.json | 0 data/user_workspaces/admin/src/mytest/q | 0 editor/editors.go | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 data/user_workspaces/admin/src/mytest/1.json delete mode 100644 data/user_workspaces/admin/src/mytest/q diff --git a/data/user_workspaces/admin/src/mytest/1.json b/data/user_workspaces/admin/src/mytest/1.json deleted file mode 100644 index e69de29..0000000 diff --git a/data/user_workspaces/admin/src/mytest/q b/data/user_workspaces/admin/src/mytest/q deleted file mode 100644 index e69de29..0000000 diff --git a/editor/editors.go b/editor/editors.go index f9322b6..c01005f 100644 --- a/editor/editors.go +++ b/editor/editors.go @@ -23,9 +23,9 @@ var editorWS = map[string]*websocket.Conn{} // 代码片段. 这个结构可用于“查找使用”、“文件搜索”的返回值. type snippet struct { Path string `json:"path"` // 文件路径 - Line int `json:"lline"` // 行号 + Line int `json:"line"` // 行号 Ch int `json:"ch"` // 列号 - Contents []string `json:"contents"` // 代码行 + Contents []string `json:"contents"` // 附近几行 } // 建立编辑器通道.