comparison src/indent.c @ 77069:50bb3d12f1b1

(Fmove_to_column): Set next_boundary with correct start pt.
author Richard M. Stallman <rms@gnu.org>
date Sun, 08 Apr 2007 23:59:19 +0000
parents 0ce9492fa779
children 922696f363b0 dc002877ce12 4ef881a120fe
comparison
equal deleted inserted replaced
77068:1ab9d1057ad0 77069:50bb3d12f1b1
949 goal = XINT (column); 949 goal = XINT (column);
950 950
951 pos = PT; 951 pos = PT;
952 pos_byte = PT_BYTE; 952 pos_byte = PT_BYTE;
953 end = ZV; 953 end = ZV;
954 next_boundary = pos;
955 954
956 /* If we're starting past the desired column, 955 /* If we're starting past the desired column,
957 back up to beginning of line and scan from there. */ 956 back up to beginning of line and scan from there. */
958 if (col > goal) 957 if (col > goal)
959 { 958 {
960 end = pos; 959 end = pos;
961 pos = current_column_bol_cache; 960 pos = current_column_bol_cache;
962 pos_byte = CHAR_TO_BYTE (pos); 961 pos_byte = CHAR_TO_BYTE (pos);
963 col = 0; 962 col = 0;
964 } 963 }
964
965 next_boundary = pos;
965 966
966 while (pos < end) 967 while (pos < end)
967 { 968 {
968 while (pos == next_boundary) 969 while (pos == next_boundary)
969 { 970 {