Skip to content

Commit 3905e29

Browse files
committed
patch 7.4.1605
Problem: Catching exception that won't be thrown. Solution: Remove try/catch.
1 parent 3848e00 commit 3905e29

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/testdir/test55.in

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,8 @@ let l = [0, 1, 2, 3]
173173
:let dict.data = [1,2,3]
174174
:call dict.func("len: ")
175175
:let x = dict.func("again: ")
176-
:try
177-
: let Fn = dict.func
178-
: call Fn('xxx')
179-
:catch
180-
: $put =v:exception[:15]
181-
:endtry
176+
:let Fn = dict.func
177+
:call Fn('xxx')
182178
:"
183179
:" Function in script-local List or Dict
184180
:let g:dict = {}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1605,
751753
/**/
752754
1604,
753755
/**/

0 commit comments

Comments
 (0)