gnc-split-reg.c (gnucash-5.0.tar.bz2) | : | gnc-split-reg.c (gnucash-5.1.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 2220 | skipping to change at line 2220 | |||
gnc_split_reg_enter( GNCSplitReg *gsr, gboolean next_transaction ) | gnc_split_reg_enter( GNCSplitReg *gsr, gboolean next_transaction ) | |||
{ | { | |||
SplitRegister *sr = gnc_ledger_display_get_split_register( gsr->ledger ); | SplitRegister *sr = gnc_ledger_display_get_split_register( gsr->ledger ); | |||
gboolean goto_blank; | gboolean goto_blank; | |||
ENTER("gsr=%p, next_transaction=%s", gsr, next_transaction ? "TRUE" : "FALSE "); | ENTER("gsr=%p, next_transaction=%s", gsr, next_transaction ? "TRUE" : "FALSE "); | |||
goto_blank = gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL_REGISTER, | goto_blank = gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL_REGISTER, | |||
GNC_PREF_ENTER_MOVES_TO_END); | GNC_PREF_ENTER_MOVES_TO_END); | |||
/* If we are in single or double line mode and we hit enter | /* If we are in single or double line view and we hit enter | |||
* on the blank split, go to the blank split instead of the | * on the blank split, go to the blank split instead of the | |||
* next row. This prevents the cursor from jumping around | * next row. This prevents the cursor from jumping around | |||
* when you are entering transactions. */ | * when you are entering transactions. */ | |||
if ( !goto_blank && !next_transaction ) | if ( !goto_blank && !next_transaction ) | |||
{ | { | |||
SplitRegisterStyle style = sr->style; | SplitRegisterStyle style = sr->style; | |||
if (style == REG_STYLE_LEDGER) | if (style == REG_STYLE_LEDGER) | |||
{ | { | |||
Split *blank_split; | Split *blank_split; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |