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
3d90156e
Commit
3d90156e
authored
May 16, 2024
by
Josh Yan
Browse files
removed comment
parent
26bfc1c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
cmd/cmd.go
cmd/cmd.go
+0
-1
No files found.
cmd/cmd.go
View file @
3d90156e
...
@@ -739,7 +739,6 @@ type displayResponseState struct {
...
@@ -739,7 +739,6 @@ type displayResponseState struct {
wordBuffer
string
wordBuffer
string
}
}
// using runewidth instead of len (cus length is number of bytes, we want display length)
func
displayResponse
(
content
string
,
wordWrap
bool
,
state
*
displayResponseState
)
{
func
displayResponse
(
content
string
,
wordWrap
bool
,
state
*
displayResponseState
)
{
termWidth
,
_
,
_
:=
term
.
GetSize
(
int
(
os
.
Stdout
.
Fd
()))
termWidth
,
_
,
_
:=
term
.
GetSize
(
int
(
os
.
Stdout
.
Fd
()))
if
wordWrap
&&
termWidth
>=
10
{
if
wordWrap
&&
termWidth
>=
10
{
...
...
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