sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

[ST4] Autocomplete fails to find words on the same line

Open jamessimas opened this issue 4 years ago • 1 comments
trafficstars

Description

Autocomplete fails to find and complete words which exist on the same line in the document.

Steps to reproduce

Note: This works as expected on ST3. This issue only affects ST4.

  1. Open a new tab in ST4
  2. Paste the below block of text
  3. Move your cursor to end of line 5 (right after "opp")
  4. Press tab (or whatever you've bound autocomplete to)
Hello,

This is a fake letter.

This is another sentence here with the word opportunity in it. Here I try to use it again and autocomplete it and it opp

Note: If you place a line break between the two sentences on line 5, autocomplete will function as expected on "opp".

Expected behavior

"opp" should be autocompleted to opportunity.

Actual behavior

"opp" is not autocompleted.

Environment

  • Build: 4096
  • Operating system and version: macOS 11.1

jamessimas avatar Jan 30 '21 23:01 jamessimas

Still an issue on build 4126 and macOS 12.3

danilokleber avatar Mar 23 '22 00:03 danilokleber

Fixed in build 4157.

BenjaminSchaaf avatar Oct 19 '23 04:10 BenjaminSchaaf