Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit cd693b2

Browse files
committed
fix issue#4
1 parent ff45e01 commit cd693b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/jumpLoc.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function M.jumpNextLocation()
120120
api.nvim_command("echohl WarningMsg | echo 'no next diagnostic' | echohl None")
121121
else
122122
checkNextLocation()
123-
api.nvim_command("ll"..M.nextLocationIndex)
123+
api.nvim_command("silent! ll"..M.nextLocationIndex)
124124
M.currentLocationIndex = M.nextLocationIndex
125125
M.nextLocationIndex = M.currentLocationIndex + 1
126126
M.prevLocationIndex = M.currentLocationIndex - 1
@@ -136,7 +136,7 @@ function M.jumpPrevLocation()
136136
api.nvim_command("echohl WarningMsg | echo 'no previous diagnostic' | echohl None")
137137
else
138138
checkPrevLocation()
139-
api.nvim_command("ll"..M.prevLocationIndex)
139+
api.nvim_command("silent! ll"..M.prevLocationIndex)
140140
M.currentLocationIndex = M.prevLocationIndex
141141
M.nextLocationIndex = M.currentLocationIndex + 1
142142
M.prevLocationIndex = M.currentLocationIndex - 1

0 commit comments

Comments
 (0)