I think the original meaning was quite specific, referring to thorough changes in the internal structure of code, but now it is used for any and all internal changes that are not meant to change functionality. For example, under ‘refactoring’ Microsoft Visual Studio lists trivial changes like renaming or reordering parameters:

So when someone says ‘I refactored such and such’ it might mean more or less anything, including just changing some method names.