Skip to content

tagbar #57

Description

@cridemichel

Dear developer,
if 'set sessionsoptions-=blank' is used, tagbar (https://github.com/majutsushi/tagbar) is
not restored on reloading the session...
Below I attached a diff -u with the needed change to fix this issue,

best C.

--- obsession_orig.vim	2019-07-28 09:38:50.000000000 +0200
+++ obsession.vim	2019-07-28 09:39:00.000000000 +0200
@@ -73,7 +73,9 @@
   let sessionoptions = &sessionoptions
   if exists('g:this_obsession')
     try
-      set sessionoptions-=blank sessionoptions-=options sessionoptions+=tabpages
+      "tagbar is considered a blank windows by vim and thus it is not reopened if -=blank is used
+      set sessionoptions-=options sessionoptions+=tabpages
+      "set sessionoptions-=blank sessionoptions-=options sessionoptions+=tabpages
       execute 'mksession! '.fnameescape(g:this_obsession)
       let body = readfile(g:this_obsession)
       call insert(body, 'let g:this_session = v:this_session', -3)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions