mirror of
https://github.com/EnumeratedDev/Typer.git
synced 2025-07-03 00:18:21 +00:00
Compare commits
No commits in common. "1b5ce6b7f801f7d2179957f7aa254a79faa4a71d" and "ff087b196a4f1bfe6fbeed4ef01de5822e5856ca" have entirely different histories.
1b5ce6b7f8
...
ff087b196a
@ -134,7 +134,7 @@ func (buffer *Buffer) Save() error {
|
||||
}
|
||||
|
||||
// Append new line character at end of buffer contents if not present
|
||||
if buffer.Contents == "" || buffer.Contents[len(buffer.Contents)-1] != '\n' {
|
||||
if buffer.Contents[len(buffer.Contents)-1] != '\n' {
|
||||
buffer.Contents += "\n"
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ func RequestInput(window *Window, text string, defaultInput string) chan string
|
||||
request := &TyperInputRequest{
|
||||
Text: text,
|
||||
input: defaultInput,
|
||||
cursorPos: len(defaultInput),
|
||||
cursorPos: 0,
|
||||
inputChannel: make(chan string),
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user