a4.0.5 - ready to go
This commit is contained in:
parent
1d9b327b96
commit
cc91b72883
41
4ed.cpp
41
4ed.cpp
|
@ -4035,24 +4035,29 @@ App_Step_Sig(app_step){
|
|||
// NOTE(allen): initialize message
|
||||
if (first_step){
|
||||
String welcome = make_lit_string(
|
||||
"Welcome to " VERSION "\n"
|
||||
"If you're new to 4coder there's no tutorial yet :(\n"
|
||||
"you can use the key combo control + o to look for a file\n"
|
||||
"and if you load README.txt you'll find all the key combos there are.\n"
|
||||
"\n"
|
||||
"Newest features:\n"
|
||||
"-Scroll bar on files and file lists\n"
|
||||
"-Arrow navigation in lists\n"
|
||||
"-A new minimal theme editor\n"
|
||||
"\n"
|
||||
"New in alpha 4.0.2:\n"
|
||||
"-The file count limit is over 8 million now\n"
|
||||
"-File equality is handled better so renamings (such as 'subst') are safe now\n"
|
||||
"-This buffer will report events including errors that happen in 4coder\n"
|
||||
"-Super users can post their own messages here with app->print_message\n"
|
||||
"-<ctrl e> centers view on cursor; cmdid_center_view in customization API\n"
|
||||
"-Set font size on command line with -f N, N = 16 by default\n\n"
|
||||
);
|
||||
"Welcome to " VERSION "\n"
|
||||
"If you're new to 4coder there's no tutorial yet :(\n"
|
||||
"you can use the key combo control + o to look for a file\n"
|
||||
"and if you load README.txt you'll find all the key combos there are.\n"
|
||||
"\n"
|
||||
"Newest features:\n"
|
||||
"-New indent rule\n"
|
||||
"-app->buffer_compute_cursor in the customization API\n"
|
||||
"-f keys are available\n"
|
||||
"\n"
|
||||
"New in alpha 4.0.3 and 4.0.4\n"
|
||||
"-Scroll bar on files and file lists\n"
|
||||
"-Arrow navigation in lists\n"
|
||||
"-A new minimal theme editor\n"
|
||||
"\n"
|
||||
"New in alpha 4.0.2:\n"
|
||||
"-The file count limit is over 8 million now\n"
|
||||
"-File equality is handled better so renamings (such as 'subst') are safe now\n"
|
||||
"-This buffer will report events including errors that happen in 4coder\n"
|
||||
"-Super users can post their own messages here with app->print_message\n"
|
||||
"-<ctrl e> centers view on cursor; cmdid_center_view in customization API\n"
|
||||
"-Set font size on command line with -f N, N = 16 by default\n\n"
|
||||
);
|
||||
|
||||
do_feedback_message(system, models, welcome);
|
||||
}
|
||||
|
|
|
@ -2256,17 +2256,22 @@ internal Cpp_Token*
|
|||
seek_matching_token_backwards(Cpp_Token_Stack tokens, Cpp_Token *token,
|
||||
Cpp_Token_Type open_type, Cpp_Token_Type close_type){
|
||||
int nesting_level = 0;
|
||||
for (; token > tokens.tokens; --token){
|
||||
if (!(token->flags & CPP_TFLAG_PP_BODY)){
|
||||
if (token->type == close_type){
|
||||
++nesting_level;
|
||||
}
|
||||
else if (token->type == open_type){
|
||||
if (nesting_level == 0){
|
||||
break;
|
||||
if (token <= tokens.tokens){
|
||||
token = tokens.tokens;
|
||||
}
|
||||
else{
|
||||
for (; token > tokens.tokens; --token){
|
||||
if (!(token->flags & CPP_TFLAG_PP_BODY)){
|
||||
if (token->type == close_type){
|
||||
++nesting_level;
|
||||
}
|
||||
else{
|
||||
--nesting_level;
|
||||
else if (token->type == open_type){
|
||||
if (nesting_level == 0){
|
||||
break;
|
||||
}
|
||||
else{
|
||||
--nesting_level;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2392,7 +2397,7 @@ get_line_indentation_marks(Partition *part, Buffer *buffer, Cpp_Token_Stack toke
|
|||
else{
|
||||
int close = 0;
|
||||
|
||||
for (token = start_token; token < brace_token; ++token){
|
||||
for (token = brace_token; token >= start_token; --token){
|
||||
switch(token->type){
|
||||
case CPP_TOKEN_PARENTHESE_CLOSE:
|
||||
case CPP_TOKEN_BRACKET_CLOSE:
|
||||
|
|
Loading…
Reference in New Issue