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
ea098dfb
🤬
Sign In
Merge
pull request #115
from eos175/dev
History now skips empty lines
NHAS
committed with
GitHub
12 months ago
ea098dfb
2 parents
b6228f09
c5184981
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
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