]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(rmd,rrst): 'fex' option not properly restored
authorJohn M Devin <john.m.devin@gmail.com>
Mon, 23 Sep 2024 18:09:33 +0000 (20:09 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 23 Sep 2024 18:12:48 +0000 (20:12 +0200)
Add 'fex' to b:undo_ftplugin variable

closes: #15728

Signed-off-by: John M Devin <john.m.devin@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/rmd.vim
runtime/ftplugin/rrst.vim

index a537017aad6cbff9c8d473f658fde510ee0291c4..2390ab1cb974f7f66039c4f1b769b42b7b8d08d3 100644 (file)
@@ -3,7 +3,9 @@
 " Maintainer:          This runtime file is looking for a new maintainer.
 " Former Maintainer:   Jakson Alves de Aquino <jalvesaq@gmail.com>
 " Former Repository:   https://github.com/jalvesaq/R-Vim-runtime
-" Last Change:         2024 Feb 28 by Vim Project
+" Last Change:
+"  2024 Feb 28 by Vim Project
+"  2024 Sep 23 by Vim Project: properly restore fex option
 " Original work by Alex Zvoleff (adjusted from R help for rmd by Michel Kuhlmann)
 
 " Only do this when not yet done for this buffer
@@ -74,9 +76,9 @@ if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
 endif
 
 if exists('b:undo_ftplugin')
-  let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter"
+  let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< fex< | unlet! b:browsefilter"
 else
-  let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter"
+  let b:undo_ftplugin = "setl cms< com< fo< flp< isk< fex< | unlet! b:browsefilter"
 endif
 
 let &cpo = s:cpo_save
index d088f98224fc00763343306ec17d73907c60504c..73ebb75fea45b9ea593b51902c17592db03e4ab8 100644 (file)
@@ -3,7 +3,9 @@
 " Maintainer:          This runtime file is looking for a new maintainer.
 " Former Maintainer:   Jakson Alves de Aquino <jalvesaq@gmail.com>
 " Former Repository:   https://github.com/jalvesaq/R-Vim-runtime
-" Last Change:         2024 Feb 28 by Vim Project
+" Last Change:
+"  2024 Feb 28 by Vim Project
+"  2024 Sep 23 by Vim Project: properly restore fex option
 " Original work by Alex Zvoleff
 
 " Only do this when not yet done for this buffer
@@ -48,9 +50,9 @@ if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
 endif
 
 if exists('b:undo_ftplugin')
-  let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< | unlet! b:browsefilter"
+  let b:undo_ftplugin .= " | setl cms< com< fo< flp< isk< fex< | unlet! b:browsefilter"
 else
-  let b:undo_ftplugin = "setl cms< com< fo< flp< isk< | unlet! b:browsefilter"
+  let b:undo_ftplugin = "setl cms< com< fo< flp< isk< fex< | unlet! b:browsefilter"
 endif
 
 let &cpo = s:cpo_save