Open dustdfg opened 3 months ago
TL;DR it is not a problem of the filetype but almost about reloading and solvable by #3062
When I use set filetype <filetype> the auto-completion duplicate names
set filetype <filetype>
set filetype
Firstly I thought problem in https://github.com/zyedidia/micro/blob/5ae2799b7044f625012dbde916091f81a01b383a/internal/action/infocomplete.go#L62-L96 But then I realized that code for color schemes auto-completion is the same as for filetype auto-completion. https://github.com/zyedidia/micro/blob/5ae2799b7044f625012dbde916091f81a01b383a/internal/action/infocomplete.go#L190-L194 They even used both in the same way so the problem not in the action/infocomplete.go
action/infocomplete.go
The problem is somewhere inside the buffer.SetOption function which tries to make reload
buffer.SetOption
https://github.com/zyedidia/micro/blob/5ae2799b7044f625012dbde916091f81a01b383a/internal/buffer/settings.go#L22-L33
Version: 2.0.14-dev.77 Commit hash: 5ae2799b OS: debian 12/testing Terminal: foot
One more reason to test that PR :)
Description of the problem or steps to reproduce
TL;DR it is not a problem of the filetype but almost about reloading and solvable by #3062
When I use
set filetype <filetype>
the auto-completion duplicate namesset filetype
set filetype
Roots of the problem
Firstly I thought problem in https://github.com/zyedidia/micro/blob/5ae2799b7044f625012dbde916091f81a01b383a/internal/action/infocomplete.go#L62-L96 But then I realized that code for color schemes auto-completion is the same as for filetype auto-completion. https://github.com/zyedidia/micro/blob/5ae2799b7044f625012dbde916091f81a01b383a/internal/action/infocomplete.go#L190-L194 They even used both in the same way so the problem not in the
action/infocomplete.go
The problem is somewhere inside the
buffer.SetOption
function which tries to make reloadhttps://github.com/zyedidia/micro/blob/5ae2799b7044f625012dbde916091f81a01b383a/internal/buffer/settings.go#L22-L33
Specifications
Version: 2.0.14-dev.77 Commit hash: 5ae2799b OS: debian 12/testing Terminal: foot