Skip to content

use vimtex#util#trim() instead of trim() for Vim versions < 8.1#2121

Closed
Konfekt wants to merge 1 commit intolervag:masterfrom
Konfekt:trim
Closed

use vimtex#util#trim() instead of trim() for Vim versions < 8.1#2121
Konfekt wants to merge 1 commit intolervag:masterfrom
Konfekt:trim

Conversation

@Konfekt
Copy link
Copy Markdown
Contributor

@Konfekt Konfekt commented Jul 28, 2021

The two occurrences of trim() in

\ {_, i -> trim(getline(i))[0] == "@"})

and

if empty(trim(getline(a:lnum)))

are replaced by

function! vimtex#util#trim(str) abort " {{{1

for Vim versions < 8.1.

This creates dependencies outside of the bib file, but they have been there before anyway.

@lervag
Copy link
Copy Markdown
Owner

lervag commented Aug 1, 2021

Thanks!

lervag added a commit that referenced this pull request Aug 1, 2021
@lervag lervag closed this Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants