Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fzf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
fzf
Commits
e867355b
Commit
e867355b
authored
8 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Patches
Plain Diff
[neovim] Restore winfixwidth and winfixheight
Fix
https://github.com/junegunn/fzf.vim/issues/128
parent
b28c14b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugin/fzf.vim
+9
-4
9 additions, 4 deletions
plugin/fzf.vim
with
9 additions
and
4 deletions
plugin/fzf.vim
+
9
−
4
View file @
e867355b
...
@@ -307,7 +307,7 @@ function! s:split(dict)
...
@@ -307,7 +307,7 @@ function! s:split(dict)
endif
endif
execute
cmd sz
.
'new'
execute
cmd sz
.
'new'
execute
resz sz
execute
resz sz
return
return
{}
endif
endif
endfor
endfor
if
s:present
(
a:dict
,
'window'
)
if
s:present
(
a:dict
,
'window'
)
...
@@ -315,20 +315,25 @@ function! s:split(dict)
...
@@ -315,20 +315,25 @@ function! s:split(dict)
else
else
execute
(
tabpagenr
()
-1
).
'tabnew'
execute
(
tabpagenr
()
-1
).
'tabnew'
endif
endif
return
{
'&l:wfw'
:
&
l
:
wfw
,
'&l:wfh'
:
&
l
:
wfh
}
finally
finally
setlocal
winfixwidth
winfixheight
buftype
=
nofile
bufhidden
=
wipe
nobuflisted
setlocal
winfixwidth
winfixheight
buftype
=
nofile
bufhidden
=
wipe
nobuflisted
endtry
endtry
endfunction
endfunction
function
!
s:execute_term
(
dict
,
command
,
temps
)
abort
function
!
s:execute_term
(
dict
,
command
,
temps
)
abort
call
s:split
(
a:dict
)
let
winopts
=
s:split
(
a:dict
)
let
fzf
=
{
'buf'
:
bufnr
(
'%'
),
'dict'
:
a:dict
,
'temps'
:
a:temps
,
'name'
:
'FZF'
}
let
fzf
=
{
'buf'
:
bufnr
(
'%'
),
'dict'
:
a:dict
,
'temps'
:
a:temps
,
'name'
:
'FZF'
,
'winopts'
:
winopts
}
let
s:command
=
a:command
let
s:command
=
a:command
function
!
fzf
.
on_exit
(
id
,
code
)
function
!
fzf
.
on_exit
(
id
,
code
)
let
pos
=
s:getpos
()
let
pos
=
s:getpos
()
let
inplace
=
pos
==
s:ppos
"
{
'window'
:
'enew'
}
let
inplace
=
pos
==
s:ppos
"
{
'window'
:
'enew'
}
if
!
inplace
if
inplace
for
[
opt
,
val
]
in
items
(
self
.
winopts
)
execute
'let'
opt
'='
val
endfor
else
if
bufnr
(
''
)
==
self
.
buf
if
bufnr
(
''
)
==
self
.
buf
" We use close instead of bd! since Vim does not close the split when
" We use close instead of bd! since Vim does not close the split when
" there's no other listed buffer (nvim +'set nobuflisted')
" there's no other listed buffer (nvim +'set nobuflisted')
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment