mirror of https://github.com/Hilbis/Hilbish
Compare commits
No commits in common. "3f9b23038192c84ff2f73491c70593ddf6b1aced" and "bd4e0df7b32e43115ae307d7ff7b9ab0c8da3b11" have entirely different histories.
3f9b230381
...
bd4e0df7b3
|
@ -77,9 +77,7 @@ random errors introduced with the new Lua runtime (see [#197])
|
|||
- `bait.release(name, catcher)` removes `handler` for the named `event`
|
||||
- `exec`, `clear` and `cat` builtin commands
|
||||
- `hilbish.cancel` hook
|
||||
- 1st item on history is now inserted when history search menu is opened ([#148])
|
||||
|
||||
[#148]: https://github.com/Rosettea/Hilbish/issues/148
|
||||
[#197]: https://github.com/Rosettea/Hilbish/issues/197
|
||||
|
||||
### Changed
|
||||
|
@ -160,7 +158,6 @@ will result in the files being completed.
|
|||
- Fixed grid menu display if cell width ends up being the width of the terminal
|
||||
- Cut off item names in grid menu if its longer than cell width
|
||||
- Fix completion search menu disappearing
|
||||
- Completion paths having duplicated characters if it's escaped
|
||||
|
||||
## [2.0.0-rc1] - 2022-09-14
|
||||
This is a pre-release version of Hilbish for testing. To see the changelog,
|
||||
|
|
|
@ -161,9 +161,6 @@ func matchPath(query string) ([]string, string) {
|
|||
entries = append(entries, entry)
|
||||
}
|
||||
}
|
||||
if !strings.HasPrefix(oldQuery, "\"") {
|
||||
baseName = escapeFilename(baseName)
|
||||
}
|
||||
|
||||
return entries, baseName
|
||||
}
|
||||
|
|
|
@ -73,13 +73,13 @@ func newFileHistory(path string) *fileHistory {
|
|||
}
|
||||
}
|
||||
|
||||
itms := []string{""}
|
||||
lines := strings.Split(string(data), "\n")
|
||||
itms := make([]string, len(lines) - 1)
|
||||
for i, l := range lines {
|
||||
if i == len(lines) - 1 {
|
||||
continue
|
||||
}
|
||||
itms[i] = l
|
||||
itms = append(itms, l)
|
||||
}
|
||||
f, err := os.OpenFile(path, os.O_APPEND | os.O_WRONLY | os.O_CREATE, 0755)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue