diff --git a/plugin/local/code/vimer.js b/plugin/local/code/vimer.js index 997c9aeb..1a9b7a0c 100644 --- a/plugin/local/code/vimer.js +++ b/plugin/local/code/vimer.js @@ -322,7 +322,7 @@ Volcanos(chat.ONACTION, {help: "控件交互", }) }, "编辑器": function(event, can) { - window.opencmd("cd ~/contexts; vim "+can.Option(nfs.PATH)+can.Option(nfs.FILE)+" +"+can.Option(nfs.LINE)) + window.opencmd("cd ~/contexts; vim +"+can.Option(nfs.LINE)+" "+can.Option(nfs.PATH)+can.Option(nfs.FILE)) }, "浏览器": function(event, can) { window.openurl(location.href) diff --git a/plugin/table.js b/plugin/table.js index f5b83709..7cf154ec 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -67,8 +67,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar }, onclick: function(event) { can.onmotion.focus(can, event.target) }, _init: function(target) { zone._search = target - can.onmotion.delay(can, function() { can.page.styleWidth(can, target, target.parentNode.parentNode.parentNode.offsetWidth-32) }) - // can.onappend.figure(can, {name: zone.name}, target) + can.onmotion.delay(can, function() { can.page.styleWidth(can, target, can.core.Value(target.parentNode.parentNode, "parentNode.offsetWidth")-32) }) }}], target, {}) }}, {view: html.LIST, _init: function(target) { can.ui[zone.name] = zone