This commit is contained in:
Gokcehan committed 2020-06-11 04:11:40 +03:00
1 parent 99cee56d6e
commit 0e3910652a
10 files changed
+140 -138

No files matched your search

+7 -7
View File
@@ -13,6 +13,13 @@ import (
func isRoot(name string) bool { return filepath.Dir(name) == name }
func replaceTilde(s string) string {
if strings.HasPrefix(s, "~") {
s = strings.Replace(s, "~", gUser.HomeDir, 1)
}
return s
}
func runeSliceWidth(rs []rune) int {
w := 0
for _, r := range rs {
@@ -207,13 +214,6 @@ func max(a, b int) int {
return b
}
func replaceTilde(s string) string {
if strings.HasPrefix(s, "~") {
s = strings.Replace(s, "~", gUser.HomeDir, 1)
}
return s
}
// We don't need no generic code
// We don't need no type control
// No dark templates in compiler