restore caret too if we are at the end of the buffer
restore caret too if we are at the end of the buffer

xushuwei202/Vintageous,wbcustc/Vintageous,zhangtuoparis13/Vintageous,himacro/Vintageous,zhangtuoparis13/Vintageous,gerardroche/Vintageous,zhangtuoparis13/Vintageous,denim2x/Vintageous,denim2x/Vintageous,denim2x/Vintageous,vastcharade/Vintageous,vastcharade/Vintageous,wbcustc/Vintageous,wbcustc/Vintageous,xushuwei202/Vintageous,guillermooo-forks/Vintageous,guillermooo-forks/Vintageous,himacro/Vintageous,himacro/Vintageous,xushuwei202/Vintageous,guillermooo-forks/Vintageous