Skip to content

Commit fe340fe

Browse files
authored
[Vim Plugin] Goto reference in a modified file causes warning fixes #477 (#480)
* [Vim Plugin] Goto reference in a modified file causes warning fixes #477 * Fixed Vader test
1 parent 1b39f8c commit fe340fe

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
## develop
5+
6+
Bug fixes:
7+
8+
- [Vim Plugin] Goto reference in a modified file causes warning #477.
9+
410
## 2018-05-20 0.5.0
511

612
Features:

‎plugin/phpactor.vim‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ function! phpactor#_rpc_dispatch(actionName, parameters)
376376
" >> open_file
377377
if a:actionName == "open_file"
378378
call phpactor#_switchToBufferOrEdit(a:parameters['path'])
379-
exec ":edit"
380379

381380
if (a:parameters['offset'])
382381
exec ":goto " . (a:parameters['offset'] + 1)

‎plugin/tests/goto_reference.vader‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Given php:
2+
<?php
3+
4+
use Phpactor\Phpactor;
5+
6+
new Phpactor();
7+
8+
Do:
9+
/Phpactor\<Enter>nn
10+
:call phpactor#GotoDefinition()\<Enter>
11+
12+
Then:
13+
AssertEqual "Phpactor.php", expand('%:t')

0 commit comments

Comments
 (0)