ViReplaceEndOfWord does not property handle word delimiters at end of line

Đang mở
#5,128 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
csharp, powershell
Lĩnh vực
cli

Hướng nghiên cứu

Start by reproducing the issue in PSReadLine Vi mode with a line ending in a word delimiter, using the stated PowerShell, PSReadLine, and Windows Terminal environment. Locate the ViReplaceEndOfWord entry point and any related tests; done means the cursor lands before the ending delimiter and the existing trailing-character case remains correct.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Needs-Triage :mag:
Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.
Exception report
N/A
Screenshot

N/A

Environment data
PS Version: 7.6.0
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.4.5
PSReadLine EditMode: Vi
OS: 10.0.26100.1 (WinBuild.160101.0800)
BufferWidth: 200
BufferHeight: 50
Steps to reproduce

Type some text that ends with a word delimiter. In VI mode, with the cursor anywhere before that ending word delimiter, type <c, e>. For example:

'sometext'

Expected behavior

The cursor should end up landing just before the delimiter

Actual behavior

The cursor lands after the delimiter, at the end of the line.

If you were to repeat the test, but place a space (or any character, really) at the end of the line, after the delimiter, then the cursor will correctly land before the delimiter

Ngôn ngữ chính
C#
Star
4.4k
Fork
341
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PowerShell/PSReadLine

Tất cả issue của PowerShell/PSReadLine

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.