Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
57a58db1
Commit
57a58db1
authored
Oct 27, 2023
by
Jeffrey Morgan
Browse files
history: update pos after compact
parent
2d75a453
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
readline/history.go
readline/history.go
+1
-1
No files found.
readline/history.go
View file @
57a58db1
...
...
@@ -78,8 +78,8 @@ func (h *History) Init() error {
func
(
h
*
History
)
Add
(
l
[]
rune
)
{
h
.
Buf
.
Add
(
l
)
h
.
Pos
=
h
.
Size
()
h
.
Compact
()
h
.
Pos
=
h
.
Size
()
if
h
.
Autosave
{
h
.
Save
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment