Skip to content

Commit

Permalink
update vi
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Mar 2, 2022
1 parent 715c286 commit ea67791
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 9 additions & 3 deletions misc/vi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ menuconfig PKG_USING_VI
select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_STDIO if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_POLL if RT_VER_NUM >= 0x40100
select RT_USING_POSIX_TERMIOS if RT_VER_NUM >= 0x40100
select PKG_USING_POSIX_STRINGS
select PKG_USING_OPTPARSE
select PKG_USING_MEM_SANDBOX
Expand Down Expand Up @@ -96,7 +95,7 @@ if PKG_USING_VI
config VI_ENABLE_WIN_RESIZE
select RT_USING_POSIX_TERMIOS
bool "Handle window resize"
default n
default y
help
Make busybox vi behave nicely with terminals that get resized.

Expand Down Expand Up @@ -153,13 +152,20 @@ if PKG_USING_VI
prompt "Version"
help
Select this package version
default PKG_USING_VI_LATEST_VERSION
default PKG_USING_VI_V135 if RT_VER_NUM < 0x40100

config PKG_USING_VI_LATEST_VERSION
bool "latest"

config PKG_USING_VI_V135
depends on RT_VER_NUM < 0x40100
bool "v1.3.5"

endchoice

config PKG_VI_VER
string
default "latest" if PKG_USING_VI_LATEST_VERSION

default "v1.3.5" if PKG_USING_VI_V135
endif
6 changes: 6 additions & 0 deletions misc/vi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"URL": "https://github.com/RT-Thread-packages/vi.git",
"filename": "Null for git package",
"VER_SHA": "master"
},
{
"version": "v1.3.5",
"URL": "https://github.com/RT-Thread-packages/vi/archive/refs/tags/v1.3.5.zip",
"filename": "vi-1.3.5.zip",
"VER_SHA": "master"
}
]
}

0 comments on commit ea67791

Please sign in to comment.