Skip to content

Commit

Permalink
Lview accepts filenames with or without .html.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowfiend committed Feb 6, 2010
1 parent 85cddda commit 3ab1f94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoload/liftweb.vim
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ function! s:OpenView(viewName)
return
endif

let s:view = glob('src/main/webapp/' . a:viewName)
let s:viewName = substitute(a:viewName, "\\.html$", "", "") . ".html"
let s:view = glob('src/main/webapp/' . s:viewName)
if !strlen(s:view)
let s:viewList = split(glob('src/main/webapp/**/' . a:viewName), "\n")
let s:viewList = split(glob('src/main/webapp/**/' . s:viewName), "\n")

if empty(s:viewList)
return
Expand Down

0 comments on commit 3ab1f94

Please sign in to comment.