Skip to content

Commit 3c03e67

Browse files
committed
docs(readme): cn Leet open
1 parent a5111a5 commit 3c03e67

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.zh.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ image_support = false, -- 将此设置为 `true` 将禁用问题描述的换行
301301

302302
- `submit` 提交当前打开的问题
303303

304+
- `open` 在默认浏览器中打开当前问题。
305+
304306
- `random` 打开一个随机问题
305307

306308
- `daily` 打开今天的问题

lua/leetcode/command/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function cmd.open()
264264
command = string.format("start \"\" \"%s\"", q.cache.link)
265265
end
266266

267-
vim.cmd("!" .. command)
267+
os.execute(command)
268268
end
269269
end
270270

0 commit comments

Comments
 (0)