crash.software
Projects
Pull Requests
Issues
Builds
reverse_ssh
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
reverse_ssh
Commits
c5184981
🤬
Sign In
History now skips empty lines
Emmanuel Ortiz
committed
12 months ago
c5184981
1 parent
b6228f09
Total 1 files
■ ■ ■ ■
■
■
internal/terminal/terminal.go
skipped 1121 lines
1122
1122
if lineOk {
1123
1123
if t.echo {
1124
1124
t.historyIndex = -1
1125
-
t.history.Add(line)
1125
+
line2 := strings.TrimSpace(line)
1126
+
if line2 != "" {
1127
+
t.history.Add(line2)
1128
+
}
1126
1129
}
1127
1130
if lineIsPasted {
1128
1131
err = ErrPasteIndicator
skipped 223 lines
All occurrences
Please wait...
Page is in error, reload to recover