Skip to content

Commit

Permalink
NAME2FUNC -> _name2func
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Mar 4, 2021
1 parent d2ee304 commit 6eb86dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ var name2char = map[string]string{
// KeyCode from
// http://msdn.microsoft.com/ja-jp/library/windows/desktop/dd375731(v=vs.85).aspx

var NAME2FUNC = map[string]func(context.Context, *Buffer) Result{
var _name2func = map[string]func(context.Context, *Buffer) Result{
F_ACCEPT_LINE: keyFuncEnter,
F_BACKWARD_CHAR: keyFuncBackward,
F_BACKWARD_WORD: keyFuncBackwardWord,
Expand Down Expand Up @@ -284,7 +284,7 @@ var NAME2FUNC = map[string]func(context.Context, *Buffer) Result{
}

func name2func(keyName string) KeyFuncT {
if p, ok := NAME2FUNC[keyName]; ok {
if p, ok := _name2func[keyName]; ok {
return &KeyGoFuncT{
Func: p,
Name: keyName,
Expand Down

0 comments on commit 6eb86dd

Please sign in to comment.