Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package vim-plugins for openSUSE:Factory 
checked in at 2025-01-24 13:44:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vim-plugins (Old)
 and      /work/SRC/openSUSE:Factory/.vim-plugins.new.2316 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vim-plugins"

Fri Jan 24 13:44:22 2025 rev:54 rq:1240141 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/vim-plugins/vim-plugins.changes  2024-02-21 
17:56:46.408078067 +0100
+++ /work/SRC/openSUSE:Factory/.vim-plugins.new.2316/vim-plugins.changes        
2025-01-24 13:44:57.145927685 +0100
@@ -1,0 +2,7 @@
+Fri Jan 17 10:01:41 UTC 2025 - Jiri Slaby <jsl...@suse.cz>
+
+- update
+  * bufexplorer    7.4.27
+  * NERDtree       7.1.3
+
+-------------------------------------------------------------------
@@ -10,2 +17,2 @@
-  * NERDtree_version       7.1.0
-  * table_mode_version     4.8.1
+  * NERDtree       7.1.0
+  * table_mode     4.8.1

Old:
----
  bufexplorer-7.4.26.tar.gz
  vimplugin-NERDtree-7.1.0.tar.gz

New:
----
  bufexplorer-7.4.27.tar.gz
  vimplugin-NERDtree-7.1.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ vim-plugins.spec ++++++
--- /var/tmp/diff_new_pack.op3pYf/_old  2025-01-24 13:45:00.214054402 +0100
+++ /var/tmp/diff_new_pack.op3pYf/_new  2025-01-24 13:45:00.214054402 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package vim-plugins
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,7 +23,7 @@
 %define align_version          37.43
 %define a_version              2.18
 %define bats_version    0.10.0
-%define bufexplorer_version    7.4.26
+%define bufexplorer_version    7.4.27
 %define calendar_version       2.5
 %define colorsel_version       20110107
 %define colorschemes_version   1.0
@@ -42,7 +42,7 @@
 %define multiplesearch_version 1.3
 %define neomutt_version                20220612
 %define NERDcommenter_version  2.7.0
-%define NERDtree_version       7.1.0
+%define NERDtree_version       7.1.3
 %define project_version                1.4.1
 %define quilt_version          0.9.7
 %define rails_version          5.2
@@ -765,6 +765,10 @@
 - /supported-tools.md
 EOF
 
+cat > bufexplorer-%{bufexplorer_version}/.rsync-filter <<EOF
+- /how_to_release.txt
+EOF
+
 cat > editorconfig-vim-%{editorconfig_version}/.rsync-filter <<EOF
 - /plugin/editorconfig-core-py/
 - /tests/

++++++ bufexplorer-7.4.26.tar.gz -> bufexplorer-7.4.27.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bufexplorer-7.4.26/.gitignore 
new/bufexplorer-7.4.27/.gitignore
--- old/bufexplorer-7.4.26/.gitignore   2023-05-02 04:47:59.000000000 +0200
+++ new/bufexplorer-7.4.27/.gitignore   2024-08-13 14:51:35.000000000 +0200
@@ -4,3 +4,7 @@
 *.zip
 tags
 *.sw[a-p]
+
+# Github token.
+github_token
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bufexplorer-7.4.26/.goreleaser.yaml 
new/bufexplorer-7.4.27/.goreleaser.yaml
--- old/bufexplorer-7.4.26/.goreleaser.yaml     1970-01-01 01:00:00.000000000 
+0100
+++ new/bufexplorer-7.4.27/.goreleaser.yaml     2024-08-13 14:51:35.000000000 
+0200
@@ -0,0 +1,54 @@
+# This is an example .goreleaser.yml file with some sensible defaults.
+# Make sure to check the documentation at https://goreleaser.com
+
+# The lines below are called `modelines`. See `:help modeline`
+# Feel free to remove those if you don't want/need to use them.
+# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
+# vim: set ts=2 sw=2 tw=0 fo=cnqoj
+
+#version: 1
+
+env_files:
+  # GoReleaser requires an API token with the 'repo' scope selected to deploy
+  # the artifacts to GitHub. You can create one here
+  # https://github.com/settings/tokens/new.
+  github_token: ./github_token
+
+#before:
+#  hooks:
+#    # You may remove this if you don't use go modules.
+#    - go mod tidy
+#    # you may remove this if you don't need go generate
+#    - go generate ./...
+
+builds:
+  - skip: true
+
+archives:
+  - format: tar.gz
+    # this name template makes the OS and Arch compatible with the results of 
`uname`.
+    name_template: >-
+      {{ .ProjectName }}_
+      {{- title .Os }}_
+      {{- if eq .Arch "amd64" }}x86_64
+      {{- else if eq .Arch "386" }}i386
+      {{- else }}{{ .Arch }}{{ end }}
+      {{- if .Arm }}v{{ .Arm }}{{ end }}
+    # use zip for windows archives
+    format_overrides:
+      - goos: windows
+        format: zip
+
+checksum:
+  name_template: 'checksums.txt'
+
+snapshot:
+  name_template: '{{ .Tag }}-next'
+
+changelog:
+  use: github-native
+  sort: asc
+
+release:
+  draft: false
+  replace_existing_draft: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bufexplorer-7.4.26/doc/bufexplorer.txt 
new/bufexplorer-7.4.27/doc/bufexplorer.txt
--- old/bufexplorer-7.4.26/doc/bufexplorer.txt  2023-05-02 04:47:59.000000000 
+0200
+++ new/bufexplorer-7.4.27/doc/bufexplorer.txt  2024-08-13 14:51:35.000000000 
+0200
@@ -1,7 +1,7 @@
-*bufexplorer.txt*              Buffer Explorer       Last Change: 01 May 2023
+*bufexplorer.txt*              Buffer Explorer       Last Change: 13 Aug 2024
 
 Buffer Explorer                                *buffer-explorer* *bufexplorer*
-                                Version 7.4.26
+                                Version 7.4.27
 
 Plugin for easily exploring (or browsing) Vim|:buffers|.
 
@@ -263,6 +263,10 @@
 ===============================================================================
 CHANGE LOG                                              *bufexplorer-changelog*
 
+7.4.27   May 30, 2024
+       - Thanks to GitHub user NotNormallyAGitUser, for the recommendation to
+         change the display of the relative path to replace $HOME with "~".
+         This save valuable screen real estate.
 7.4.26   May 01, 2023
      What's Changed
        - wipe explorer buffer on hide by @basharh in
@@ -795,9 +799,9 @@
 ===============================================================================
 CREDITS                                                   *bufexplorer-credits*
 
-Author: Jeff Lanzarotta <delux256-vim at outlook dot com>
+Author: Jeff Lanzarotta <my name at gmail dot com>
 
-Credit must go out to Bram Moolenaar and all the Vim developers for
+Credit must go out to Bram Moolenaar (RIP) and all the Vim developers for
 making the world's best editor (IMHO). I also want to thank everyone who
 helped and gave me suggestions. I wouldn't want to leave anyone out so I
 won't list names.
@@ -805,7 +809,7 @@
 ===============================================================================
 COPYRIGHT                                               *bufexplorer-copyright*
 
-Copyright (c) 2001-2022, Jeff Lanzarotta
+Copyright (c) 2001-2024, Jeff Lanzarotta
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bufexplorer-7.4.26/how_to_release.txt 
new/bufexplorer-7.4.27/how_to_release.txt
--- old/bufexplorer-7.4.26/how_to_release.txt   1970-01-01 01:00:00.000000000 
+0100
+++ new/bufexplorer-7.4.27/how_to_release.txt   2024-08-13 14:51:35.000000000 
+0200
@@ -0,0 +1,16 @@
+https://goreleaser.com/quick-start/
+
+To make a release...
+
+1. Make changes.
+2. Commit and push changes.
+3. git tag -a v7.4.27 -m "Release v7.4.27."
+4. git push origin v7.4.27
+5. goreleaser release --clean
+6. Go to github and make the release.
+
+If something happens and the tag is messed up, you will need to delete the
+local and remote tag and release again.  To delete the tag:
+
+1. git tag -d v7.4.27
+2. git push --delete origin v7.4.27
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bufexplorer-7.4.26/plugin/bufexplorer.vim 
new/bufexplorer-7.4.27/plugin/bufexplorer.vim
--- old/bufexplorer-7.4.26/plugin/bufexplorer.vim       2023-05-02 
04:47:59.000000000 +0200
+++ new/bufexplorer-7.4.27/plugin/bufexplorer.vim       2024-08-13 
14:51:35.000000000 +0200
@@ -1,5 +1,5 @@
 "============================================================================
-"    Copyright: Copyright (c) 2001-2023, Jeff Lanzarotta
+"    Copyright: Copyright (c) 2001-2024, Jeff Lanzarotta
 "               All rights reserved.
 "
 "               Redistribution and use in source and binary forms, with or
@@ -36,7 +36,7 @@
 " Name Of File: bufexplorer.vim
 "  Description: Buffer Explorer Vim Plugin
 "   Maintainer: Jeff Lanzarotta (my name at gmail dot com)
-" Last Changed: Monday, 01 May 2023
+" Last Changed: Tuesday, 13 August 2024
 "      Version: See g:bufexplorer_version for version number.
 "        Usage: This file should reside in the plugin directory and be
 "               automatically sourced.
@@ -74,7 +74,7 @@
 "1}}}
 
 " Version number
-let g:bufexplorer_version = "7.4.26"
+let g:bufexplorer_version = "7.4.27"
 
 " Plugin Code {{{1
 " Check for Vim version {{{2
@@ -770,12 +770,12 @@
         " Are we to split the path and file name?
         if g:bufExplorerSplitOutPathName
             let type = (g:bufExplorerShowRelativePath) ? "relativepath" : 
"path"
-            let path = buf[type]
+            let path = substitute( buf[type], $HOME."\\>", "~", "" )
             let pad  = (g:bufExplorerShowUnlisted) ? s:allpads.shortname : 
s:listedpads.shortname
             let line .= buf.shortname." ".strpart(pad.path, 
s:StringWidth(buf.shortname))
         else
             let type = (g:bufExplorerShowRelativePath) ? "relativename" : 
"fullname"
-            let path = buf[type]
+            let path = substitute( buf[type], $HOME."\\>", "~", "" )
             let line .= path
         endif
 

++++++ vimplugin-NERDtree-7.1.0.tar.gz -> vimplugin-NERDtree-7.1.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/CHANGELOG.md 
new/nerdtree-7.1.3/CHANGELOG.md
--- old/nerdtree-7.1.0/CHANGELOG.md     2023-12-31 09:36:39.000000000 +0100
+++ new/nerdtree-7.1.3/CHANGELOG.md     2024-07-20 07:01:16.000000000 +0200
@@ -13,6 +13,16 @@
             - Pull Request Title n (PR Author) [PR Number](Link to PR)
 -->
 #### 7.1
+- **.3**:
+    - docs: update FAQ snippets containing quit command. (rzvxa) 
[#1417](https://github.com/preservim/nerdtree/pull/1417)
+    - feat: jump to bookmark table shortcut. (ds2606, rzvxa) 
[#1394](https://github.com/preservim/nerdtree/pull/1394)
+    - fix: typo in docs for show file lines setting. (lothardp) 
[#1426](https://github.com/preservim/nerdtree/pull/1426)
+- **.2**:
+    - fix: GetWinNum regex pattern. (rzvxa) 
[#1409](https://github.com/preservim/nerdtree/pull/1409)
+    - fix: session restore for nerdtree buffers. (rzvxa) 
[#1405](https://github.com/preservim/nerdtree/pull/1405)
+- **.1**:
+    - fix: change default binding of filelines to `FL`. (rzvxa) 
[#1400](https://github.com/preservim/nerdtree/pull/1400)
+    - fix: toggle zoom resizing. (ds2606) 
[#1395](https://github.com/preservim/nerdtree/pull/1395)
 - **.0**:
     - fix: typo in the docs. (bl4kraven) 
[#1390](https://github.com/preservim/nerdtree/pull/1390)
     - feat: add NERDTreeExplore command. (msibal6) 
[#1389](https://github.com/preservim/nerdtree/pull/1389)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/README.markdown 
new/nerdtree-7.1.3/README.markdown
--- old/nerdtree-7.1.0/README.markdown  2023-12-31 09:36:39.000000000 +0100
+++ new/nerdtree-7.1.3/README.markdown  2024-07-20 07:01:16.000000000 +0200
@@ -150,6 +150,24 @@
 
 ### How can I close Vim or a tab automatically when NERDTree is the last 
window?
 
+Because of the changes in how Vim handles its `autocmd` and layout locking 
`quit` command is no longer available in Vim9 auto commands, Depending on which 
version you're running select one of these solutions.
+
+__NeoVim users should be able to choose either one of them!__
+
+#### Vim9
+
+```vim
+" Exit Vim if NERDTree is the only window remaining in the only tab.
+autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && 
exists('b:NERDTree') && b:NERDTree.isTabTree() | call 
feedkeys(":quit\<CR>:\<BS>") | endif
+```
+---
+```vim
+" Close the tab if NERDTree is the only window remaining in it.
+autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && 
b:NERDTree.isTabTree() | call feedkeys(":quit\<CR>:\<BS>") | endif
+```
+
+#### Vim8 or older
+
 ```vim
 " Exit Vim if NERDTree is the only window remaining in the only tab.
 autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && 
exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/autoload/nerdtree/ui_glue.vim 
new/nerdtree-7.1.3/autoload/nerdtree/ui_glue.vim
--- old/nerdtree-7.1.0/autoload/nerdtree/ui_glue.vim    2023-12-31 
09:36:39.000000000 +0100
+++ new/nerdtree-7.1.3/autoload/nerdtree/ui_glue.vim    2024-07-20 
07:01:16.000000000 +0200
@@ -70,6 +70,7 @@
     call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapJumpRoot, 'scope': 'all', 
'callback': s.'jumpToRoot' })
     call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapJumpNextSibling, 'scope': 
'Node', 'callback': s.'jumpToNextSibling' })
     call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapJumpPrevSibling, 'scope': 
'Node', 'callback': s.'jumpToPrevSibling' })
+    call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapJumpBookmarks, 'scope': 
'all', 'callback': s.'jumpToBookmarks' })
 
     call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapOpenInTab, 'scope': 'Node', 
'callback': s . 'openInNewTab' })
     call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapOpenInTabSilent, 'scope': 
'Node', 'callback': s . 'openInNewTabSilent' })
@@ -496,6 +497,21 @@
     call b:NERDTree.ui.centerView()
 endfunction
 
+" FUNCTION: s:jumpToBookmarks() {{{1
+" moves the cursor to the bookmark table
+function! s:jumpToBookmarks() abort
+    try
+        if b:NERDTree.ui.getShowBookmarks()
+            call g:NERDTree.CursorToBookmarkTable()
+        else
+            call b:NERDTree.ui.setShowBookmarks(1)
+        endif
+    catch /^NERDTree/
+        call nerdtree#echoError('Failed to jump to the bookmark table')
+        return
+    endtry
+endfunction
+
 " FUNCTION: nerdtree#ui_glue#openBookmark(name) {{{1
 " Open the Bookmark that has the specified name. This function provides the
 " implementation for the :OpenBookmark command.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/autoload/nerdtree.vim 
new/nerdtree-7.1.3/autoload/nerdtree.vim
--- old/nerdtree-7.1.0/autoload/nerdtree.vim    2023-12-31 09:36:39.000000000 
+0100
+++ new/nerdtree-7.1.3/autoload/nerdtree.vim    2024-07-20 07:01:16.000000000 
+0200
@@ -234,6 +234,38 @@
     endif
 endfunction
 
+"FUNCTION: nerdtree#onBufLeave() {{{2
+" used for handling the nerdtree BufLeave/WinLeave events.
+function! nerdtree#onBufLeave() abort
+    " detect whether we are in the middle of sourcing a session.
+    " if it is a buffer from the sourced session we need to restore it.
+    if exists('g:SessionLoad') && !exists('b:NERDTree')
+        let bname = bufname('%')
+        " is the buffer for a tab tree?
+        if bname =~# '^' . g:NERDTreeCreator.BufNamePrefix() . 'tab_\d\+$'
+            " rename loaded buffer and mark it as trash to prevent this event
+            " getting fired again
+            exec 'file TRASH_' . bname
+            " delete the trash buffer
+            exec 'bwipeout!'
+            " rescue the tab tree at the current working directory
+            call g:NERDTreeCreator.CreateTabTree(getcwd())
+        " is the buffer for a window tree?
+        elseif bname =~# '^' . g:NERDTreeCreator.BufNamePrefix(). 'win_\d\+$'
+            " rescue the window tree at the current working directory
+            call g:NERDTreeCreator.CreateWindowTree(getcwd())
+        else " unknown buffer type
+            " rename buffer to mark it as broken.
+            exec 'file BROKEN_' . bname
+            call nerdtree#echoError('Failed to restore "' . bname . '" from 
session. Is this session created with an older version of NERDTree?')
+        endif
+    else
+        if g:NERDTree.IsOpen()
+            call b:NERDTree.ui.saveScreenState()
+        endif
+    endif
+endfunction
+
 " SECTION: View Functions {{{1
 "============================================================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/doc/NERDTree.txt 
new/nerdtree-7.1.3/doc/NERDTree.txt
--- old/nerdtree-7.1.0/doc/NERDTree.txt 2023-12-31 09:36:39.000000000 +0100
+++ new/nerdtree-7.1.3/doc/NERDTree.txt 2024-07-20 07:01:16.000000000 +0200
@@ -287,7 +287,7 @@
 f........Toggle whether the file filters are 
used...................|NERDTree-f|
 F........Toggle whether files are 
displayed.........................|NERDTree-F|
 B........Toggle whether the bookmark table is 
displayed.............|NERDTree-B|
-L........Toggle whether the number of lines in files is 
displayed...|NERDTree-L|
+L........Toggle whether the number of lines in files is 
displayed..|NERDTree-FL|
 
 q........Close the NERDTree 
window..................................|NERDTree-q|
 A........Zoom (maximize/minimize) the NERDTree 
window...............|NERDTree-A|
@@ -603,8 +603,8 @@
 Toggles whether the bookmarks table is displayed.
 
 ------------------------------------------------------------------------------
-                                                                    
*NERDTree-L*
-Default key: L
+                                                                   
*NERDTree-FL*
+Default key: FL
 Map setting: *NERDTreeMapToggleFileLines*
 Applies to: no restrictions.
 
@@ -1073,18 +1073,18 @@
 navigating to a different part of the tree.
 
 ------------------------------------------------------------------------------
-                                                        
*NERDTreeShowFilesLines*
+                                                             
*NERDTreeFileLines*
 Values: 0 or 1.
 Default: 0.
 
 If this setting is set to 1 then the NERDTree shows number of lines for each
 file.
 
-This setting can be toggled dynamically, per tree, with the |NERDTree-L|
+This setting can be toggled dynamically, per tree, with the |NERDTree-FL|
 mapping.
 Use one of the follow lines for this setting: >
-    let NERDTreeShowFilesLines=0
-    let NERDTreeShowFilesLines=1
+    let NERDTreeFileLines=0
+    let NERDTreeFileLines=1
 <
 ------------------------------------------------------------------------------
                                                             
*NERDTreeShowHidden*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/lib/nerdtree/creator.vim 
new/nerdtree-7.1.3/lib/nerdtree/creator.vim
--- old/nerdtree-7.1.0/lib/nerdtree/creator.vim 2023-12-31 09:36:39.000000000 
+0100
+++ new/nerdtree-7.1.3/lib/nerdtree/creator.vim 2024-07-20 07:01:16.000000000 
+0200
@@ -118,7 +118,7 @@
 
     "we need a unique name for each window tree buffer to ensure they are
     "all independent
-    exec g:NERDTreeCreatePrefix . ' edit ' . self._nextBufferName()
+    exec g:NERDTreeCreatePrefix . ' edit ' . self._nextBufferName('win')
 
     call self._createNERDTree(path, 'window')
     let b:NERDTree._previousBuf = bufnr(previousBuf)
@@ -210,7 +210,7 @@
     let l:splitSize = g:NERDTreeWinSize
 
     if !g:NERDTree.ExistsForTab()
-        let t:NERDTreeBufName = self._nextBufferName()
+        let t:NERDTreeBufName = self._nextBufferName('tab')
         silent! execute l:splitLocation . l:splitDirection . ' ' . l:splitSize 
. ' new'
         silent! execute 'edit ' . t:NERDTreeBufName
         silent! execute l:splitDirection . ' resize '. l:splitSize
@@ -244,10 +244,22 @@
     return newCreator
 endfunction
 
-" FUNCTION: s:Creator._nextBufferName() {{{1
-" returns the buffer name for the next nerd tree
-function! s:Creator._nextBufferName()
-    let name = s:Creator.BufNamePrefix() . self._nextBufferNumber()
+" FUNCTION: s:Creator._nextBufferName(type='') {{{1
+" gets an optional buffer type of either 'tab' or 'win'.
+" returns the buffer name for the next nerd tree of such type.
+function! s:Creator._nextBufferName(...)
+    if a:0 > 0
+        let type = a:1
+    else
+        let type = ''
+    end
+    let name = s:Creator.BufNamePrefix()
+    if type ==# 'tab'
+        let name = name . 'tab_'
+    elseif type ==# 'win'
+        let name = name . 'win_'
+    endif
+    let name = name . self._nextBufferNumber()
     return name
 endfunction
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/lib/nerdtree/nerdtree.vim 
new/nerdtree-7.1.3/lib/nerdtree/nerdtree.vim
--- old/nerdtree-7.1.0/lib/nerdtree/nerdtree.vim        2023-12-31 
09:36:39.000000000 +0100
+++ new/nerdtree-7.1.3/lib/nerdtree/nerdtree.vim        2024-07-20 
07:01:16.000000000 +0200
@@ -144,7 +144,7 @@
 
     " If WindowTree, there is no t:NERDTreeBufName variable. Search all 
windows.
     for w in range(1,winnr('$'))
-        if bufname(winbufnr(w)) =~# '^' . g:NERDTreeCreator.BufNamePrefix() . 
'\d\+$'
+        if bufname(winbufnr(w)) =~# '^' . g:NERDTreeCreator.BufNamePrefix() . 
'win_\d\+$'
             return w
         endif
     endfor
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/lib/nerdtree/ui.vim 
new/nerdtree-7.1.3/lib/nerdtree/ui.vim
--- old/nerdtree-7.1.0/lib/nerdtree/ui.vim      2023-12-31 09:36:39.000000000 
+0100
+++ new/nerdtree-7.1.3/lib/nerdtree/ui.vim      2024-07-20 07:01:16.000000000 
+0200
@@ -62,6 +62,7 @@
         let help .= "\"\n\" ----------------------------\n"
         let help .= "\" Bookmark table mappings~\n"
         let help .= "\" double-click,\n"
+        let help .= '" '. g:NERDTreeMapJumpBookmarks .": jump to bookmark 
table\n"
         let help .= '" '. g:NERDTreeMapActivateNode .": open bookmark\n"
         let help .= '" '. g:NERDTreeMapPreview .": preview file\n"
         let help .= '" '. g:NERDTreeMapPreview .": find dir in tree\n"
@@ -482,10 +483,10 @@
     call self.centerView()
 endfunction
 
-" FUNCTION: s:UI.toggleShowBookmarks() {{{1
-" Toggle the visibility of the Bookmark table.
-function! s:UI.toggleShowBookmarks()
-    let self._showBookmarks = !self._showBookmarks
+" FUNCTION: s:UI.setShowBookmarks() {{{1
+" Sets the visibility of the Bookmark table.
+function! s:UI.setShowBookmarks(value)
+    let self._showBookmarks = a:value
 
     if self.getShowBookmarks()
         call self.nerdtree.render()
@@ -503,6 +504,12 @@
     call self.centerView()
 endfunction
 
+" FUNCTION: s:UI.toggleShowBookmarks() {{{1
+" Toggle the visibility of the Bookmark table.
+function! s:UI.toggleShowBookmarks()
+    call self.setShowBookmarks(!self._showBookmarks)
+endfunction
+
 " FUNCTION: s:UI.toggleShowFiles() {{{1
 " toggles the display of hidden files
 function! s:UI.toggleShowFiles()
@@ -532,6 +539,9 @@
 " zoom (maximize/minimize) the NERDTree window
 function! s:UI.toggleZoom()
     if exists('b:NERDTreeZoomed') && b:NERDTreeZoomed
+        setlocal nowinfixwidth
+        wincmd =
+        setlocal winfixwidth
         call nerdtree#exec('silent vertical resize '. g:NERDTreeWinSize, 1)
         let b:NERDTreeZoomed = 0
     else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nerdtree-7.1.0/plugin/NERD_tree.vim 
new/nerdtree-7.1.3/plugin/NERD_tree.vim
--- old/nerdtree-7.1.0/plugin/NERD_tree.vim     2023-12-31 09:36:39.000000000 
+0100
+++ new/nerdtree-7.1.3/plugin/NERD_tree.vim     2024-07-20 07:01:16.000000000 
+0200
@@ -101,6 +101,7 @@
 
 "SECTION: Init variable calls for key mappings {{{2
 let g:NERDTreeMapCustomOpen      = get(g:, 'NERDTreeMapCustomOpen',      
'<CR>')
+let g:NERDTreeMapJumpBookmarks   = get(g:, 'NERDTreeMapJumpBookmarks',   'gb')
 let g:NERDTreeMapActivateNode    = get(g:, 'NERDTreeMapActivateNode',    'o')
 let g:NERDTreeMapChangeRoot      = get(g:, 'NERDTreeMapChangeRoot',      'C')
 let g:NERDTreeMapChdir           = get(g:, 'NERDTreeMapChdir',           'cd')
@@ -131,7 +132,7 @@
 let g:NERDTreeMapToggleFiles     = get(g:, 'NERDTreeMapToggleFiles',     'F')
 let g:NERDTreeMapToggleFilters   = get(g:, 'NERDTreeMapToggleFilters',   'f')
 let g:NERDTreeMapToggleHidden    = get(g:, 'NERDTreeMapToggleHidden',    'I')
-let g:NERDTreeMapToggleFileLines = get(g:, 'NERDTreeMapToggleFileLines', 'L')
+let g:NERDTreeMapToggleFileLines = get(g:, 'NERDTreeMapToggleFileLines', 'FL')
 let g:NERDTreeMapToggleZoom      = get(g:, 'NERDTreeMapToggleZoom',      'A')
 let g:NERDTreeMapUpdir           = get(g:, 'NERDTreeMapUpdir',           'u')
 let g:NERDTreeMapUpdirKeepOpen   = get(g:, 'NERDTreeMapUpdirKeepOpen',   'U')
@@ -151,7 +152,7 @@
 "============================================================
 augroup NERDTree
     "Save the cursor position whenever we close the nerd tree
-    exec 'autocmd BufLeave,WinLeave '. g:NERDTreeCreator.BufNamePrefix() .'* 
if g:NERDTree.IsOpen() | call b:NERDTree.ui.saveScreenState() | endif'
+    exec 'autocmd BufLeave,WinLeave '. g:NERDTreeCreator.BufNamePrefix() .'* 
call nerdtree#onBufLeave()'
 
     "disallow insert mode in the NERDTree
     exec 'autocmd BufEnter,WinEnter '. g:NERDTreeCreator.BufNamePrefix() .'* 
stopinsert'

Reply via email to