Skip to content

Commit

Permalink
Fix comment position
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Dec 1, 2014
1 parent d318da9 commit dfbcb0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/asterisk.vim
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function! asterisk#do(mode, config) abort
let config = extend(s:default_config(), a:config)
let pattern = (s:is_visual(a:mode) ?
\ s:convert_2_word_pattern(s:get_selected_text(), config) : s:cword_pattern(config))
if s:is_empty_cword(pattern) " 'E348: No string under cursor'
if s:is_empty_cword(pattern)
" 'E348: No string under cursor'
if s:is_visual(a:mode)
return "\<Esc>:echohl ErrorMsg | echom 'asterisk.vim: No selected string' | echohl None\<CR>"
else
Expand Down

0 comments on commit dfbcb0d

Please sign in to comment.