shithub: mc

Download patch

ref: 352a62d529461a0aabf4dd65686cebccc4d2b6c6
parent: 77a41acbc02d1a63dd8d1345e3cf1875befd7eaa
author: Ori Bernstein <[email protected]>
date: Fri Apr 17 17:17:06 EDT 2015

Clean up InComment a bit.

    This removes a needless if.

--- a/support/vim/indent/myr.vim
+++ b/support/vim/indent/myr.vim
@@ -8,13 +8,11 @@
 
 function! InComment(lnum, col)
     let stk = synstack(a:lnum, a:col)
-    if len(stk)
-        for id in stk
-            if synIDattr(id, "name") == "myrComment"
-                return 1
-            endif
-        endfor
-    endif
+    for id in stk
+        if synIDattr(id, "name") == "myrComment"
+            return 1
+        endif
+    endfor
     return 0
 endfunction