Skip to content

loop trying to navigate with l (and h) #11904

Open
@plutack

Description

@plutack

Summary

I get stuck in a back and forth loop when trying to move cursor focus with h and l depending on the direction I am taking.

Reproduction Steps

https://asciinema.org/a/IF0OH5O7oAV8ODHVTgIbENy1b

I tried this:

  1. paste this text in an empty file; नमस्कार
  2. move to the beginning of word
  3. in normal mode. use l to navigate through the text

I expected this to happen:
move pass the word to the end of the word

Instead, this happened:
I get stuck in the middle

Helix log

Try 'tail --help' for more information.

╭─plutack@talutpc in ~/projects/go/learning-go/ch-3/one via  v1.23.2 as 🧙 took 2ms
[🔴] × tail -l50 /home/plutack/.cache/helix/helix.log
tail: invalid option -- 'l'
Try 'tail --help' for more information.

╭─plutack@talutpc in ~/projects/go/learning-go/ch-3/one via  v1.23.2 as 🧙 took 2ms
[🔴] × tail --lines 50 /home/plutack/.cache/helix/helix.log
2024-10-16T17:41:55.114 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:55.246 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:55.379 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:55.516 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:55.648 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:55.769 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:55.886 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:56.137 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-16T17:41:56.276 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:56.277 helix_lsp::transport [INFO] gopls -> {"jsonrpc":"2.0","method":"textDocument/formatting","params":{"options":{"insertSpaces":false,"
2024-10-16T17:41:56.279 helix_lsp::transport [INFO] gopls <- {"jsonrpc":"2.0","error":{"code":0,"message":"10:16: expected type, found ':=' (and 1 more erro
2024-10-16T17:41:56.279 helix_lsp::transport [ERROR] gopls <- ServerError(0): 10:16: expected type, found ':=' (and 1 more errors)
2024-10-16T17:41:56.279 helix_view::document [WARN] LSP formatting failed: protocol error: ServerError(0): 10:16: expected type, found ':=' (and 1 more erro
2024-10-16T17:41:56.279 helix_view::document [DEBUG] submitting save of doc 'Some("/home/plutack/projects/go/learning-go/ch-3/one/main.go")'
2024-10-16T17:41:56.281 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:56.292 helix_term::application [DEBUG] received editor event: DocumentSaved(Ok(DocumentSavedEvent { revision: 0, save_time: SystemTime { tv
2024-10-16T17:41:56.292 helix_lsp::transport [INFO] gopls -> {"jsonrpc":"2.0","method":"textDocument/didSave","params":{"textDocument":{"uri":"file:///home/
2024-10-16T17:41:56.292 helix_lsp::file_event [DEBUG] Received file event for "/home/plutack/projects/go/learning-go/ch-3/one/main.go"
2024-10-16T17:41:56.292 helix_term::application [DEBUG] document Some("/home/plutack/projects/go/learning-go/ch-3/one/main.go") saved with revision 0
2024-10-16T17:41:56.292 helix_view::document [DEBUG] doc 2 revision updated 0 -> 0
2024-10-16T17:41:56.292 helix_view::editor [DEBUG] editor status: 'main.go' written, 13L 478B
2024-10-16T17:41:56.292 helix_lsp::file_event [DEBUG] Sending didChangeWatchedFiles notification to client 'gopls'
2024-10-16T17:41:56.292 helix_lsp::transport [INFO] gopls -> {"jsonrpc":"2.0","method":"workspace/didChangeWatchedFiles","params":{"changes":[{"type":2,"uri":"file:///home/plutack/projects/go/learning-go/ch-3/one/main.go"}]}}
2024-10-16T17:41:56.293 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:56.314 helix_lsp::transport [INFO] gopls <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/plutack/projects/go/learning-go/ch-3/one/main.go","diagnostics":[{"range":{"start":{"line":9,"character":15},"end":{"line":9,"character":15}},"severity":1,"source":"syntax","message":"expected type, found ':='"}]}}
2024-10-16T17:41:56.314 helix_term::application [DEBUG] received editor event: LanguageServerMessage((LanguageServerId(1v1), Notification(Notification { jsonrpc: Some(V2), method: "textDocument/publishDiagnostics", params: Map({"diagnostics": Array [Object {"message": String("expected type, found ':='"), "range": Object {"end": Object {"character": Number(15), "line": Number(9)}, "start": Object {"character": Number(15), "line": Number(9)}}, "severity": Number(1), "source": String("syntax")}], "uri": String("file:///home/plutack/projects/go/learning-go/ch-3/one/main.go")}) })))
2024-10-16T17:41:56.349 helix_term::application [DEBUG] received editor event: Redraw
2024-10-16T17:41:56.350 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:56.525 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-16T17:41:56.778 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:57.028 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-16T17:41:57.640 helix_term::commands::typed [DEBUG] quitting...
2024-10-16T17:41:57.641 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:57.865 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:58.261 helix_view::editor [DEBUG] editor error: no such command: 'q1'
2024-10-16T17:41:58.262 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:59.558 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:41:59.809 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-16T17:41:59.995 helix_term::commands::typed [DEBUG] quitting...
2024-10-16T17:41:59.996 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:42:01.100 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-10-16T17:42:01.456 helix_term::job [DEBUG] waiting on jobs...
2024-10-16T17:42:01.456 helix_term::job [DEBUG] waiting on jobs...
2024-10-16T17:42:01.456 helix_lsp::file_event [DEBUG] Removing LSP client: 1v1
2024-10-16T17:42:01.456 helix_lsp::transport [INFO] gopls -> {"jsonrpc":"2.0","method":"shutdown","id":2}
2024-10-16T17:42:01.457 helix_lsp::transport [INFO] gopls <- {"jsonrpc":"2.0","result":null,"id":2}
2024-10-16T17:42:01.457 helix_lsp::transport [INFO] gopls <- null
2024-10-16T17:42:01.457 helix_lsp::transport [INFO] gopls <- {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"2024/10/16 17:42:01 Shutdown session\n\tshutdown_session=1\n"}}
2024-10-16T17:42:01.457 helix_lsp::transport [INFO] gopls -> {"jsonrpc":"2.0","method":"exit"}
2024-10-16T17:42:01.462 helix_lsp::transport [ERROR] gopls err: <- StreamClosed

Platform

Linux

Terminal Emulator

foot version: 1.18.1 +pgo +ime +graphemes -assertions

Installation Method

AUR: helix-git package

Helix Version

helix 24.7 (a7651f5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions