diff options
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1628,8 +1628,6 @@ size_t text_lineno_by_pos(Text *txt, size_t pos) { } Mark text_mark_set(Text *txt, size_t pos) { - if (pos == 0) - return (Mark)&txt->begin; if (pos == txt->size) return (Mark)&txt->end; Location loc = piece_get_extern(txt, pos); @@ -1643,8 +1641,6 @@ size_t text_mark_get(Text *txt, Mark mark) { if (mark == EMARK) return EPOS; - if (mark == (Mark)&txt->begin) - return 0; if (mark == (Mark)&txt->end) return txt->size; |
