diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmds.c | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/cmds.c b/src/cmds.c index 9f96f210b9f..90526612b7a 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -194,7 +194,7 @@ to t. */) | |||
| 194 | SET_PT (newpos); | 194 | SET_PT (newpos); |
| 195 | 195 | ||
| 196 | if (PT > newpos | 196 | if (PT > newpos |
| 197 | && FETCH_CHAR (PT - 1) == '\n') | 197 | && FETCH_BYTE (PT_BYTE - 1) == '\n') |
| 198 | { | 198 | { |
| 199 | /* If we skipped over a newline that follows | 199 | /* If we skipped over a newline that follows |
| 200 | an invisible intangible run, | 200 | an invisible intangible run, |
| @@ -205,7 +205,7 @@ to t. */) | |||
| 205 | break; | 205 | break; |
| 206 | } | 206 | } |
| 207 | else if (PT > newpos && PT < ZV | 207 | else if (PT > newpos && PT < ZV |
| 208 | && FETCH_CHAR (PT) != '\n') | 208 | && FETCH_BYTE (PT_BYTE) != '\n') |
| 209 | /* If we skipped something intangible | 209 | /* If we skipped something intangible |
| 210 | and now we're not really at eol, | 210 | and now we're not really at eol, |
| 211 | keep going. */ | 211 | keep going. */ |
diff --git a/src/xdisp.c b/src/xdisp.c index cf15f579b58..f5a8f2eabf8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -8290,8 +8290,8 @@ get_visually_first_element (struct it *it) | |||
| 8290 | } | 8290 | } |
| 8291 | else if (it->bidi_it.charpos == bob | 8291 | else if (it->bidi_it.charpos == bob |
| 8292 | || (!string_p | 8292 | || (!string_p |
| 8293 | && (FETCH_CHAR (it->bidi_it.bytepos - 1) == '\n' | 8293 | && (FETCH_BYTE (it->bidi_it.bytepos - 1) == '\n' |
| 8294 | || FETCH_CHAR (it->bidi_it.bytepos) == '\n'))) | 8294 | || FETCH_BYTE (it->bidi_it.bytepos) == '\n'))) |
| 8295 | { | 8295 | { |
| 8296 | /* If we are at the beginning of a line/string, we can produce | 8296 | /* If we are at the beginning of a line/string, we can produce |
| 8297 | the next element right away. */ | 8297 | the next element right away. */ |
| @@ -24182,7 +24182,7 @@ the `bidi-class' property of a character. */) | |||
| 24182 | itb.charpos = BEGV; | 24182 | itb.charpos = BEGV; |
| 24183 | itb.bytepos = BEGV_BYTE; | 24183 | itb.bytepos = BEGV_BYTE; |
| 24184 | } | 24184 | } |
| 24185 | else if (FETCH_CHAR (from_bpos - 1) == '\n') | 24185 | else if (FETCH_BYTE (from_bpos - 1) == '\n') |
| 24186 | { | 24186 | { |
| 24187 | itb.charpos = from_pos; | 24187 | itb.charpos = from_pos; |
| 24188 | itb.bytepos = from_bpos; | 24188 | itb.bytepos = from_bpos; |