The code incorrectly assumed that the frame number is going always to be at the third place in the split string, but the emacs frame title which is included in the string extracted with (selected-frame) can actually be customized using the frame-title-format var and might include spaces.
On Windows this actually made the extension completely unusable for me, since it erroneously extracted the full file path from my customized frame title which made it impossible to create the necessary temp file (on Windows filenames can't include colons like in C:\foo.nim).
The code incorrectly assumed that the frame number is going always to be at the third place in the split string, but the emacs frame title which is included in the string extracted with
(selected-frame)
can actually be customized using theframe-title-format
var and might include spaces.On Windows this actually made the extension completely unusable for me, since it erroneously extracted the full file path from my customized frame title which made it impossible to create the necessary temp file (on Windows filenames can't include colons like in
C:\foo.nim
).