呼び出し側
using Microsoft.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Reflection;
namespace CSharpCodeProviderSample
{| diff --git a/main/lua.go b/main/lua.go | |
| index 73e0d16..85d9172 100644 | |
| --- a/main/lua.go | |
| +++ b/main/lua.go | |
| @@ -47,6 +47,8 @@ const ERRMSG_CAN_NOT_USE_TWO_LUA_ON = "Can not use two Lua-command on the same p | |
| const ERRMSG_CAN_NOT_RUN_LUA_ON_BACKGROUND = "Can not run Lua-Command on background" | |
| func (this LuaFunction) Call(cmd *interpreter.Interpreter) (interpreter.ErrorLevel, error) { | |
| + newArgsHookLock.Lock() | |
| + defer newArgsHookLock.Unlock() |
| $ alias ls="ls -l" | |
| $ alias gvim="C:/tools/bin/gvim.exe" | |
| $ ls | gvim - & | |
| nyagos.go: printPrompt: length invalid: ToInteger: the value in not integer on t | |
| he stack | |
| Exception 0xc0000029 0x0 0x20c38 0x776d096a | |
| PC=0x776d096a | |
| syscall.Syscall6(0x68d02790, 0x6, 0x98308c, 0x1, 0x1, 0x0, 0x0, 0x0, 0x12404060, |
| nyagos.alias.hoge = function() | |
| print("fuga") | |
| end | |
| nyagos.on_command_not_found = function(args) | |
| nyagos.exec("hoge") | |
| return false | |
| end |
| diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c | |
| index 97ad6b0..e03295c 100644 | |
| --- a/src/gui_gtk_x11.c | |
| +++ b/src/gui_gtk_x11.c | |
| @@ -2946,6 +2946,29 @@ on_select_tab( | |
| } | |
| /* | |
| + * Handle reordering the tabs (using D&D). | |
| + */ |
呼び出し側
using Microsoft.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Reflection;
namespace CSharpCodeProviderSample
{| nyagos.alias.ppt = function(args) | |
| local sel = nyagos.eval('pt /column ' .. table.concat(args, ' ') .. '| peco') | |
| if (#sel == 0) then | |
| return | |
| end | |
| local file, line, column = sel:match('(.*):(%d+):(%d+)') | |
| if ((file and line and column) == nil) then | |
| print("Error : Invalid format") | |
| print(" -> " .. sel) | |
| return |
| diff --git a/match.go b/match.go | |
| index 939724e..e17cf14 100644 | |
| --- a/match.go | |
| +++ b/match.go | |
| @@ -51,9 +51,9 @@ func (m *Match) setMatch(pattern *Pattern, num int, s string) { | |
| m.Line.Str = s | |
| if m.setCol { | |
| if pattern.UseRegexp || pattern.IgnoreCase { | |
| - m.Col = pattern.Regexp.FindStringIndex(m.Str)[0] + 1 | |
| + m.Col = len([]rune(m.Str[0:pattern.Regexp.FindStringIndex(m.Str)[0]])) + 1 |
| diff --git a/interpreter/interpreter.go b/interpreter/interpreter.go | |
| index b8e8633..9abf8c6 100644 | |
| --- a/interpreter/interpreter.go | |
| +++ b/interpreter/interpreter.go | |
| @@ -139,9 +139,9 @@ func (this *Interpreter) Spawnvp() (NextT, error) { | |
| var whatToDo NextT = CONTINUE | |
| var err error = nil | |
| - if argsHook != nil { | |
| - this.Args = argsHook(this, this.Args) |
| diff --git a/ccchart.js b/ccchart.js | |
| index d0d5918..38b9353 100644 | |
| --- a/ccchart.js | |
| +++ b/ccchart.js | |
| @@ -2608,7 +2608,9 @@ window.ccchart = | |
| //wsの受信データを間引く | |
| //itは_wメソッド内のthat.wsuids[uid] | |
| //console.log(it.wsIncomingCounter) | |
| - if(it.wsIncomingCounter++ === 0){ | |
| + if (interval === 0){ |