Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.
/ nppFSIPlugin Public archive
forked from ppv/NPPFSIPlugin

Commit 642ba1b

Browse files
committed
Hook NPPN_FILESAVED when checking if FSI can load the current file
Use case: set a new buffer's file type to "fsharp", save it. This way, the "load in FSI" menu command will be enabled without having to reload the file
1 parent 058fa6e commit 642ba1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Plugin/Src/FSIPlugin.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ procedure TFsiPlugin.BeNotified(msg: PSciNotification);
200200
TLexerProperties.SetLexer;
201201
if sciMsg.nmhdr.code = NPPN_BUFFERACTIVATED then ToggleLoadFileCmd(sciMsg.nmhdr.idFrom);
202202
end;
203-
NPPN_FILERENAMED: begin
203+
NPPN_FILESAVED: begin
204204
ToggleLoadFileCmd(sciMsg.nmhdr.idFrom);
205205
end;
206206
end;

0 commit comments

Comments
 (0)