diff options
-rw-r--r-- | doc/config.md | 4 | ||||
-rw-r--r-- | src/local/container.nim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/config.md b/doc/config.md index 04749ca6..dcc63d6c 100644 --- a/doc/config.md +++ b/doc/config.md @@ -1036,8 +1036,8 @@ do nothing and return false.</td> <tr> <td>`pager.gotoMarkY(id)`</td> -<td>If the mark `id` exists, jump to its Y position and return true. Otherwise, -do nothing and return false.</td> +<td>If the mark `id` exists, jump to the beginning of the line at +its Y position and return true. Otherwise, do nothing and return false.</td> </tr> <tr> diff --git a/src/local/container.nim b/src/local/container.nim index 74011a53..ea1f5173 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -964,7 +964,7 @@ proc gotoMarkY*(container: Container, id: string): bool {.jsfunc.} = let mark = container.getMarkPos(id) if mark.isSome: let mark = mark.get - container.setCursorXYCenter(mark.x, mark.y) + container.setCursorXYCenter(0, mark.y) container.markPos() return true return false |