Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
5d7851e8dc |
@ -4,7 +4,7 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
|
||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
||||
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||
)
|
||||
|
||||
func executor(t string) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
||||
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||
)
|
||||
|
||||
type RequestContext struct {
|
||||
|
@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
||||
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||
)
|
||||
|
||||
var LivePrefixState struct {
|
||||
|
@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
||||
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||
)
|
||||
|
||||
func executor(in string) {
|
||||
|
@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
||||
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||
)
|
||||
|
||||
func completer(in prompt.Document) []prompt.Suggest {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
||||
"git.tcp.direct/tcp.direct/go-prompt/completer"
|
||||
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||
"git.tcp.direct/Mirrors/go-prompt/completer"
|
||||
)
|
||||
|
||||
var filePathCompleter = completer.FilePathCompleter{
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"fmt"
|
||||
"syscall"
|
||||
|
||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/term"
|
||||
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/term"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,7 +3,7 @@ package prompt
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||
)
|
||||
|
||||
// Buffer emulates the console buffer.
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
|
||||
prompt "git.tcp.direct/tcp.direct/go-prompt"
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
||||
prompt "git.tcp.direct/Mirrors/go-prompt"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -3,7 +3,7 @@ package prompt
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
)
|
||||
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/bisect"
|
||||
istrings "git.tcp.direct/tcp.direct/go-prompt/internal/strings"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/bisect"
|
||||
istrings "git.tcp.direct/Mirrors/go-prompt/internal/strings"
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
)
|
||||
|
||||
|
@ -242,7 +242,7 @@ func TestDocument_DisplayCursorPosition(t *testing.T) {
|
||||
// If you're facing test failure on this test case and your terminal is iTerm2,
|
||||
// please check 'Profile -> Text' configuration. 'Use Unicode version 9 widths'
|
||||
// must be checked.
|
||||
// https://git.tcp.direct/tcp.direct/go-prompt/pull/99
|
||||
// https://git.tcp.direct/Mirrors/go-prompt/pull/99
|
||||
document: &Document{
|
||||
Text: "Добрый день",
|
||||
cursorPosition: 3,
|
||||
|
2
emacs.go
2
emacs.go
@ -1,6 +1,6 @@
|
||||
package prompt
|
||||
|
||||
import "git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
||||
import "git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||
|
||||
/*
|
||||
|
||||
|
@ -5,7 +5,7 @@ package prompt
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/term"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/term"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/bisect"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/bisect"
|
||||
)
|
||||
|
||||
func Example() {
|
||||
|
@ -3,7 +3,7 @@ package strings_test
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/strings"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/strings"
|
||||
)
|
||||
|
||||
func ExampleIndexNotByte() {
|
||||
|
@ -214,7 +214,7 @@ func (w *VT100Writer) SetColor(fg, bg Color, bold bool) {
|
||||
w.SetDisplayAttributes(fg, bg, DisplayBold)
|
||||
} else {
|
||||
// If using `DisplayDefualt`, it will be broken in some environment.
|
||||
// Details are https://git.tcp.direct/tcp.direct/go-prompt/pull/85
|
||||
// Details are https://git.tcp.direct/Mirrors/go-prompt/pull/85
|
||||
w.SetDisplayAttributes(fg, bg, DisplayReset)
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||
)
|
||||
|
||||
// Executor is called when user input something text.
|
||||
|
@ -3,7 +3,7 @@ package prompt
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
)
|
||||
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||
)
|
||||
|
||||
func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"git.tcp.direct/tcp.direct/go-prompt/internal/debug"
|
||||
"git.tcp.direct/Mirrors/go-prompt/internal/debug"
|
||||
)
|
||||
|
||||
func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) {
|
||||
|
Loading…
Reference in New Issue
Block a user