summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 19:51:13 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 19:51:13 -0500
commitd9cc57e9ff1725e6e63973705adbf218d6961d17 (patch)
tree4c2eaa1e0b39a3387793299c52062996ee7be3ae /command.c
parent87b0da0d33d97abc0ba94ad18d988d370d09441b (diff)
fix command-line argument starting file if it doesn't exist
it used to open an untitled buffer. also, clarified buffer_load_file
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 464f240..ff1bc3f 100644
--- a/command.c
+++ b/command.c
@@ -546,7 +546,7 @@ void command_execute(Ted *ted, Command c, i64 argument) {
build_stop(ted);
}
if (buffer) {
- buffer_disable_selection(buffer);
+ buffer_deselect(buffer);
}
}
break;