We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@Override
1 parent d81b358 commit 705ccbbCopy full SHA for 705ccbb
autoload/javacomplete.vim
@@ -277,11 +277,21 @@ function! s:HandleTextChangedI()
277
endif
278
279
if get(g:, 'JC_DeclarationCompletedFlag', 0)
280
- if getline('.')[col('.') - 2] != ' '
+ let line = getline('.')
281
+ if line[col('.') - 2] != ' '
282
return
283
284
285
let g:JC_DeclarationCompletedFlag = 0
286
+
287
+ if line !~ '.*@Override.*'
288
+ let line = getline(line('.') - 1)
289
+ endif
290
291
+ if line =~ '.*@Override\s\+\(\S\+\|\)\(\s\+\|\)$'
292
+ return
293
294
295
if !empty(javacomplete#util#Trim(getline('.')))
296
call feedkeys("\b\r", "n")
297
0 commit comments