comparison src/edit.c @ 5442:faf7e86203b5 v7.4.071

updated for version 7.4.071 Problem: Passing limits around too often. Solution: Use limits from buffer.
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Nov 2013 04:01:36 +0100
parents 878ed73c7070
children d11f223f4c75
comparison
equal deleted inserted replaced
5441:87ef9ff527dd 5442:faf7e86203b5
7855 else if (*look == ':') 7855 else if (*look == ':')
7856 { 7856 {
7857 if (try_match && keytyped == ':') 7857 if (try_match && keytyped == ':')
7858 { 7858 {
7859 p = ml_get_curline(); 7859 p = ml_get_curline();
7860 if (cin_iscase(p, FALSE) || cin_isscopedecl(p) 7860 if (cin_iscase(p, FALSE) || cin_isscopedecl(p) || cin_islabel())
7861 || cin_islabel(30))
7862 return TRUE; 7861 return TRUE;
7863 /* Need to get the line again after cin_islabel(). */ 7862 /* Need to get the line again after cin_islabel(). */
7864 p = ml_get_curline(); 7863 p = ml_get_curline();
7865 if (curwin->w_cursor.col > 2 7864 if (curwin->w_cursor.col > 2
7866 && p[curwin->w_cursor.col - 1] == ':' 7865 && p[curwin->w_cursor.col - 1] == ':'
7867 && p[curwin->w_cursor.col - 2] == ':') 7866 && p[curwin->w_cursor.col - 2] == ':')
7868 { 7867 {
7869 p[curwin->w_cursor.col - 1] = ' '; 7868 p[curwin->w_cursor.col - 1] = ' ';
7870 i = (cin_iscase(p, FALSE) || cin_isscopedecl(p) 7869 i = (cin_iscase(p, FALSE) || cin_isscopedecl(p)
7871 || cin_islabel(30)); 7870 || cin_islabel());
7872 p = ml_get_curline(); 7871 p = ml_get_curline();
7873 p[curwin->w_cursor.col - 1] = ':'; 7872 p[curwin->w_cursor.col - 1] = ':';
7874 if (i) 7873 if (i)
7875 return TRUE; 7874 return TRUE;
7876 } 7875 }