Commit a3c9e36 1 parent 60571f0 commit a3c9e36 Copy full SHA for a3c9e36
File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ M.setup = function(opts)
16
16
end , { desc = " Toggle the compiler results" })
17
17
18
18
cmd (" CompilerRedo" , function ()
19
+ local current_filetype = vim .bo .filetype
20
+
19
21
-- If the user didn't select an option yet, send a notification.
20
22
if _G .compiler_redo_selection == nil and _G .compiler_redo_bau_selection == nil then
21
23
vim .notify (" Open the compiler and select an option before doing redo." ,
@@ -25,7 +27,6 @@ M.setup = function(opts)
25
27
end
26
28
if _G .compiler_redo_filetype then
27
29
-- If filetype is not the same as when the option was selected, send a notification.
28
- local current_filetype = vim .bo .filetype
29
30
if _G .compiler_redo_filetype ~= current_filetype then
30
31
vim .notify (" You are on a different language now. Open the compiler and select an option before doing redo." ,
31
32
vim .log .levels .INFO , { title = " Compiler.nvim" }
You can’t perform that action at this time.
0 commit comments