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 names
- Open micro
- Write
set filetype
- Press tab
- Press enter
- Write again
set filetype
- Press tab again

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 reload
https://github.com/zyedidia/micro/blob/5ae2799b7044f625012dbde916091f81a01b383a/internal/buffer/settings.go#L22-L33
Specifications
Version: 2.0.14-dev.77
Commit hash: 5ae2799
OS: debian 12/testing
Terminal: foot