Mercurial > vim
comparison src/misc1.c @ 1996:077c15286de8 v7.2.293
updated for version 7.2-293
author | vimboss |
---|---|
date | Wed, 11 Nov 2009 16:30:08 +0000 |
parents | 613517f0b72a |
children | 071166147fc5 |
comparison
equal
deleted
inserted
replaced
1995:92809ecb9a47 | 1996:077c15286de8 |
---|---|
1024 if (lead_repl != NULL) | 1024 if (lead_repl != NULL) |
1025 { | 1025 { |
1026 int c = 0; | 1026 int c = 0; |
1027 int off = 0; | 1027 int off = 0; |
1028 | 1028 |
1029 for (p = lead_flags; *p && *p != ':'; ++p) | 1029 for (p = lead_flags; *p != NUL && *p != ':'; ) |
1030 { | 1030 { |
1031 if (*p == COM_RIGHT || *p == COM_LEFT) | 1031 if (*p == COM_RIGHT || *p == COM_LEFT) |
1032 c = *p; | 1032 c = *p++; |
1033 else if (VIM_ISDIGIT(*p) || *p == '-') | 1033 else if (VIM_ISDIGIT(*p) || *p == '-') |
1034 off = getdigits(&p); | 1034 off = getdigits(&p); |
1035 else | |
1036 ++p; | |
1035 } | 1037 } |
1036 if (c == COM_RIGHT) /* right adjusted leader */ | 1038 if (c == COM_RIGHT) /* right adjusted leader */ |
1037 { | 1039 { |
1038 /* find last non-white in the leader to line up with */ | 1040 /* find last non-white in the leader to line up with */ |
1039 for (p = leader + lead_len - 1; p > leader | 1041 for (p = leader + lead_len - 1; p > leader |