Skip to content

Commit ee5fbe6

Browse files
committed
fix: helix requires me to put a valid number behind colon
or it will open nothing.
1 parent 8213643 commit ee5fbe6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CLI-Basic.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ function ccb{
197197
# INFO: same for helix.
198198
function xcb{
199199
$clipboardContent = Get-Clipboard
200-
$lineNumber=":"+($args -join ":")
200+
if($args -ne $null) {$lineNumber=":"+($args -join ":")}
201+
else{ $lineNumber=":1" }
201202
$isPath = Test-Path $clipboardContent
202203
if($isPath){
203204
hx "$clipboardContent$lineNumber"

0 commit comments

Comments
 (0)