chore: remove go-runewidth as dependency (#2411)

* Add truncate functions

* Replace code for printing command line

* Replace code in truncateFilename function

* Remove restriction for truncatechar to be width 1

* Replace code in printdir function

* Replace code in listmatches

* Remove go-runewidth

* Revert truncatechar limitation change
This commit is contained in:
Joe Lim authored and GitHub committed 2026-03-04 19:32:46 +11:00
1 parent fd2babd72e
commit d082410b3d
6 files changed
+136 -188

No files matched your search

-2
View File
@@ -6,14 +6,12 @@ require (
github.com/djherbis/times v1.6.0
github.com/fsnotify/fsnotify v1.9.0
github.com/gdamore/tcell/v3 v3.1.2
github.com/mattn/go-runewidth v0.0.20
github.com/rivo/uniseg v0.4.7
golang.org/x/sys v0.41.0
golang.org/x/term v0.40.0
)
require (
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
github.com/gdamore/encoding v1.0.1 // indirect
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
golang.org/x/text v0.34.0 // indirect